aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/preempt.h
Commit message (Collapse)AuthorAgeFilesLines
* xen: Introduce ASSERT_NOT_IN_ATOMIC() to give more info on in_atomic() crash.Keir Fraser2013-01-141-0/+6
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* force inclusion of xen/config.h through compiler optionJan Beulich2012-01-131-1/+0
| | | | | | | | | | | | | As we expect all source files to include the header as the first thing anyway, stop doing this by repeating the inclusion in each and every source file (and in many headers), but rather enforce this uniformly through the compiler command line. As a first cleanup step, remove the explicit inclusion from all common headers. Further cleanup can be done incrementally. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* Simplify preempt.h dependencies by moving in_atomic() to preempt.cKeir Fraser2011-06-231-3/+2
| | | | | | ..clean up the ensuing fallout. Signed-off-by: Keir Fraser <keir@xen.org>
* Define Linux-style <preempt.h> interface.Keir Fraser2010-11-181-0/+33
Use it to disable sleeping in spinlock and rcu-read regions. Signed-off-by: Keir Fraser <keir@xen.org>