X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ppc64%2Fhardirq.h;h=e1a2fec9ffc0501a0d70ba606926f89440fd94ba;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=9744b7cb4ef9cd97da404b8e9f7dbc865928720e;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/include/asm-ppc64/hardirq.h b/include/asm-ppc64/hardirq.h index 9744b7cb4..e1a2fec9f 100644 --- a/include/asm-ppc64/hardirq.h +++ b/include/asm-ppc64/hardirq.h @@ -82,9 +82,11 @@ typedef struct { #ifdef CONFIG_PREEMPT # define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked()) +# define preemptible() (preempt_count() == 0 && !irqs_disabled()) # define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1) #else # define in_atomic() (preempt_count() != 0) +# define preemptible() 0 # define IRQ_EXIT_OFFSET HARDIRQ_OFFSET #endif #define irq_exit() \