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