diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-31 15:34:58 -0500 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-31 15:34:58 -0500 |
| commit | 86579dd06deecfa6ac88d5e84e4d63c397cd6f6d (patch) | |
| tree | b4475d3ccde53015ad84a06e4e55e64591171b75 /include/linux/kernel.h | |
| parent | 7ea9ea832212c4a755650f7c7cc1ff0b63292a41 (diff) | |
| parent | a0f067802576d4eb4c65d40b8ee7d6ea3c81dd61 (diff) | |
Merge branch 'master'
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 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 | ||
| 91 | extern struct notifier_block *panic_notifier_list; | 91 | extern struct atomic_notifier_head panic_notifier_list; |
| 92 | extern long (*panic_blink)(long time); | 92 | extern long (*panic_blink)(long time); |
| 93 | NORET_TYPE void panic(const char * fmt, ...) | 93 | NORET_TYPE void panic(const char * fmt, ...) |
| 94 | __attribute__ ((NORET_AND format (printf, 1, 2))); | 94 | __attribute__ ((NORET_AND format (printf, 1, 2))); |
| 95 | extern void oops_enter(void); | ||
| 96 | extern void oops_exit(void); | ||
| 97 | extern int oops_may_print(void); | ||
| 95 | fastcall NORET_TYPE void do_exit(long error_code) | 98 | fastcall NORET_TYPE void do_exit(long error_code) |
| 96 | ATTRIB_NORET; | 99 | ATTRIB_NORET; |
| 97 | NORET_TYPE void complete_and_exit(struct completion *, long) | 100 | NORET_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 | ||
| 155 | static inline unsigned long __attribute_const__ roundup_pow_of_two(unsigned long x) | 158 | static 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 | ||
| 160 | extern int printk_ratelimit(void); | 164 | extern int printk_ratelimit(void); |
