[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch to optimize "bare" critical sections
- Subject: Patch to optimize "bare" critical sections
- From: jhb at FreeBSD.org (John Baldwin)
- Date: Tue Nov 23 20:01:33 2004
Basically, I have a patch to divorce the interrupt disable/deferring to only
happen inside of spinlocks using a new spinlock_enter/exit() API (where a
spinlock_enter/exit includes a critical section as well) but that plain
critical sections won't have to do such a thing. I've tested it on i386,
alpha, and sparc64 already, and it has also been tested on arm. I'm unable
to get a cross-built powerpc kernel to link (linker dies with a signal 6),
but the compile did finish. I have cross-compiled ia64 and amd64
successfully, but have not run tested due to ENOHARDWARE. So, I would
appreciate it if a few folks could try the patch out on ppc, ia64, and amd64
to make sure it works ok. Thanks.
http://www.FreeBSD.org/~jhb/spinlock.patch
--
John Baldwin <jhb_(_at_)_FreeBSD_(_dot_)_org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
Visit your host, monkey.org