diff options
author | Ben Cheng <bccheng@google.com> | 2012-03-07 21:13:49 -0800 |
---|---|---|
committer | Ben Cheng <bccheng@google.com> | 2012-03-07 21:13:49 -0800 |
commit | 654325de026a2ca5b76b8b40e576c959d8211fdc (patch) | |
tree | 1c5dca11f5d9a792f0b4c7d3df8f57958532a091 /libc/kernel/common/linux/hardirq.h | |
parent | db6d20be77d7a176822db4106dc43605e22c7b39 (diff) | |
download | android_bionic-654325de026a2ca5b76b8b40e576c959d8211fdc.tar.gz android_bionic-654325de026a2ca5b76b8b40e576c959d8211fdc.tar.bz2 android_bionic-654325de026a2ca5b76b8b40e576c959d8211fdc.zip |
Update bionic kernel headers using update_all.py
Change-Id: I9c377436e9bf158e7236b3b7dcebf3e79fa961de
Diffstat (limited to 'libc/kernel/common/linux/hardirq.h')
-rw-r--r-- | libc/kernel/common/linux/hardirq.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/libc/kernel/common/linux/hardirq.h b/libc/kernel/common/linux/hardirq.h index c0566b0ef..90ad99b1c 100644 --- a/libc/kernel/common/linux/hardirq.h +++ b/libc/kernel/common/linux/hardirq.h @@ -7,67 +7,67 @@ *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** **************************************************************************** ****************************************************************************/ #ifndef LINUX_HARDIRQ_H #define LINUX_HARDIRQ_H - #include <linux/preempt.h> #include <linux/smp_lock.h> +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #include <linux/lockdep.h> #include <asm/hardirq.h> #include <asm/system.h> - #define PREEMPT_BITS 8 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SOFTIRQ_BITS 8 - #ifndef HARDIRQ_BITS #define HARDIRQ_BITS 12 - #if 1 << HARDIRQ_BITS < NR_IRQS +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #error HARDIRQ_BITS is too low! #endif #endif - #define PREEMPT_SHIFT 0 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SOFTIRQ_SHIFT (PREEMPT_SHIFT + PREEMPT_BITS) #define HARDIRQ_SHIFT (SOFTIRQ_SHIFT + SOFTIRQ_BITS) - #define __IRQ_MASK(x) ((1UL << (x))-1) - #define PREEMPT_MASK (__IRQ_MASK(PREEMPT_BITS) << PREEMPT_SHIFT) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SOFTIRQ_MASK (__IRQ_MASK(SOFTIRQ_BITS) << SOFTIRQ_SHIFT) #define HARDIRQ_MASK (__IRQ_MASK(HARDIRQ_BITS) << HARDIRQ_SHIFT) - #define PREEMPT_OFFSET (1UL << PREEMPT_SHIFT) #define SOFTIRQ_OFFSET (1UL << SOFTIRQ_SHIFT) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define HARDIRQ_OFFSET (1UL << HARDIRQ_SHIFT) - #if PREEMPT_ACTIVE < 1 << HARDIRQ_SHIFT + HARDIRQ_BITS #error PREEMPT_ACTIVE is too low! #endif - +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define hardirq_count() (preempt_count() & HARDIRQ_MASK) #define softirq_count() (preempt_count() & SOFTIRQ_MASK) #define irq_count() (preempt_count() & (HARDIRQ_MASK | SOFTIRQ_MASK)) - #define in_irq() (hardirq_count()) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define in_softirq() (softirq_count()) #define in_interrupt() (irq_count()) - #define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != 0) - #define preemptible() 0 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define IRQ_EXIT_OFFSET HARDIRQ_OFFSET - #define synchronize_irq(irq) barrier() - struct task_struct; - #define irq_enter() do { account_system_vtime(current); add_preempt_count(HARDIRQ_OFFSET); trace_hardirq_enter(); } while (0) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define __irq_exit() do { trace_hardirq_exit(); account_system_vtime(current); sub_preempt_count(HARDIRQ_OFFSET); } while (0) - #define nmi_enter() do { lockdep_off(); irq_enter(); } while (0) #define nmi_exit() do { __irq_exit(); lockdep_on(); } while (0) - #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |