diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 3b507bf05d09..a3720f973ea5 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -87,10 +87,13 @@ extern int cond_resched(void); | |||
| 87 | (__x < 0) ? -__x : __x; \ | 87 | (__x < 0) ? -__x : __x; \ |
| 88 | }) | 88 | }) |
| 89 | 89 | ||
| 90 | extern struct notifier_block *panic_notifier_list; | 90 | extern struct atomic_notifier_head panic_notifier_list; |
| 91 | extern long (*panic_blink)(long time); | 91 | extern long (*panic_blink)(long time); |
| 92 | NORET_TYPE void panic(const char * fmt, ...) | 92 | NORET_TYPE void panic(const char * fmt, ...) |
| 93 | __attribute__ ((NORET_AND format (printf, 1, 2))); | 93 | __attribute__ ((NORET_AND format (printf, 1, 2))); |
| 94 | extern void oops_enter(void); | ||
| 95 | extern void oops_exit(void); | ||
| 96 | extern int oops_may_print(void); | ||
| 94 | fastcall NORET_TYPE void do_exit(long error_code) | 97 | fastcall NORET_TYPE void do_exit(long error_code) |
| 95 | ATTRIB_NORET; | 98 | ATTRIB_NORET; |
| 96 | NORET_TYPE void complete_and_exit(struct completion *, long) | 99 | NORET_TYPE void complete_and_exit(struct completion *, long) |
| @@ -151,9 +154,10 @@ static inline int __attribute_pure__ long_log2(unsigned long x) | |||
| 151 | return r; | 154 | return r; |
| 152 | } | 155 | } |
| 153 | 156 | ||
| 154 | static inline unsigned long __attribute_const__ roundup_pow_of_two(unsigned long x) | 157 | static inline unsigned long |
| 158 | __attribute_const__ roundup_pow_of_two(unsigned long x) | ||
| 155 | { | 159 | { |
| 156 | return (1UL << fls(x - 1)); | 160 | return 1UL << fls_long(x - 1); |
| 157 | } | 161 | } |
| 158 | 162 | ||
| 159 | extern int printk_ratelimit(void); | 163 | extern int printk_ratelimit(void); |
