diff options
author | Len Brown <len.brown@intel.com> | 2008-10-22 23:57:26 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-23 00:11:07 -0400 |
commit | 057316cc6a5b521b332a1d7ccc871cd60c904c74 (patch) | |
tree | 4333e608da237c73ff69b10878025cca96dcb4c8 /include/linux/kernel.h | |
parent | 3e2dab9a1c2deb03c311eb3f83466009147ed4d3 (diff) | |
parent | 2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4 (diff) |
Merge branch 'linus' into test
Conflicts:
MAINTAINERS
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/acpi/sleep.c
drivers/acpi/Kconfig
drivers/pnp/Makefile
drivers/pnp/quirks.c
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 0b19848e380e..396a350b87a6 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/log2.h> | 16 | #include <linux/log2.h> |
17 | #include <linux/typecheck.h> | 17 | #include <linux/typecheck.h> |
18 | #include <linux/ratelimit.h> | 18 | #include <linux/ratelimit.h> |
19 | #include <linux/dynamic_printk.h> | ||
19 | #include <asm/byteorder.h> | 20 | #include <asm/byteorder.h> |
20 | #include <asm/bug.h> | 21 | #include <asm/bug.h> |
21 | 22 | ||
@@ -182,7 +183,7 @@ extern int vsscanf(const char *, const char *, va_list) | |||
182 | 183 | ||
183 | extern int get_option(char **str, int *pint); | 184 | extern int get_option(char **str, int *pint); |
184 | extern char *get_options(const char *str, int nints, int *ints); | 185 | extern char *get_options(const char *str, int nints, int *ints); |
185 | extern unsigned long long memparse(char *ptr, char **retptr); | 186 | extern unsigned long long memparse(const char *ptr, char **retptr); |
186 | 187 | ||
187 | extern int core_kernel_text(unsigned long addr); | 188 | extern int core_kernel_text(unsigned long addr); |
188 | extern int __kernel_text_address(unsigned long addr); | 189 | extern int __kernel_text_address(unsigned long addr); |
@@ -237,6 +238,9 @@ static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ | |||
237 | { return false; } | 238 | { return false; } |
238 | #endif | 239 | #endif |
239 | 240 | ||
241 | extern int printk_needs_cpu(int cpu); | ||
242 | extern void printk_tick(void); | ||
243 | |||
240 | extern void asmlinkage __attribute__((format(printf, 1, 2))) | 244 | extern void asmlinkage __attribute__((format(printf, 1, 2))) |
241 | early_printk(const char *fmt, ...); | 245 | early_printk(const char *fmt, ...); |
242 | 246 | ||
@@ -259,9 +263,10 @@ extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in | |||
259 | extern int panic_timeout; | 263 | extern int panic_timeout; |
260 | extern int panic_on_oops; | 264 | extern int panic_on_oops; |
261 | extern int panic_on_unrecovered_nmi; | 265 | extern int panic_on_unrecovered_nmi; |
262 | extern int tainted; | ||
263 | extern const char *print_tainted(void); | 266 | extern const char *print_tainted(void); |
264 | extern void add_taint(unsigned); | 267 | extern void add_taint(unsigned flag); |
268 | extern int test_taint(unsigned flag); | ||
269 | extern unsigned long get_taint(void); | ||
265 | extern int root_mountflags; | 270 | extern int root_mountflags; |
266 | 271 | ||
267 | /* Values used for system_state */ | 272 | /* Values used for system_state */ |
@@ -274,16 +279,17 @@ extern enum system_states { | |||
274 | SYSTEM_SUSPEND_DISK, | 279 | SYSTEM_SUSPEND_DISK, |
275 | } system_state; | 280 | } system_state; |
276 | 281 | ||
277 | #define TAINT_PROPRIETARY_MODULE (1<<0) | 282 | #define TAINT_PROPRIETARY_MODULE 0 |
278 | #define TAINT_FORCED_MODULE (1<<1) | 283 | #define TAINT_FORCED_MODULE 1 |
279 | #define TAINT_UNSAFE_SMP (1<<2) | 284 | #define TAINT_UNSAFE_SMP 2 |
280 | #define TAINT_FORCED_RMMOD (1<<3) | 285 | #define TAINT_FORCED_RMMOD 3 |
281 | #define TAINT_MACHINE_CHECK (1<<4) | 286 | #define TAINT_MACHINE_CHECK 4 |
282 | #define TAINT_BAD_PAGE (1<<5) | 287 | #define TAINT_BAD_PAGE 5 |
283 | #define TAINT_USER (1<<6) | 288 | #define TAINT_USER 6 |
284 | #define TAINT_DIE (1<<7) | 289 | #define TAINT_DIE 7 |
285 | #define TAINT_OVERRIDDEN_ACPI_TABLE (1<<8) | 290 | #define TAINT_OVERRIDDEN_ACPI_TABLE 8 |
286 | #define TAINT_WARN (1<<9) | 291 | #define TAINT_WARN 9 |
292 | #define TAINT_CRAP 10 | ||
287 | 293 | ||
288 | extern void dump_stack(void) __cold; | 294 | extern void dump_stack(void) __cold; |
289 | 295 | ||
@@ -327,8 +333,12 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
327 | #define pr_info(fmt, arg...) \ | 333 | #define pr_info(fmt, arg...) \ |
328 | printk(KERN_INFO fmt, ##arg) | 334 | printk(KERN_INFO fmt, ##arg) |
329 | 335 | ||
330 | #ifdef DEBUG | ||
331 | /* If you are writing a driver, please use dev_dbg instead */ | 336 | /* If you are writing a driver, please use dev_dbg instead */ |
337 | #if defined(CONFIG_DYNAMIC_PRINTK_DEBUG) | ||
338 | #define pr_debug(fmt, ...) do { \ | ||
339 | dynamic_pr_debug(fmt, ##__VA_ARGS__); \ | ||
340 | } while (0) | ||
341 | #elif defined(DEBUG) | ||
332 | #define pr_debug(fmt, arg...) \ | 342 | #define pr_debug(fmt, arg...) \ |
333 | printk(KERN_DEBUG fmt, ##arg) | 343 | printk(KERN_DEBUG fmt, ##arg) |
334 | #else | 344 | #else |
@@ -510,4 +520,9 @@ struct sysinfo { | |||
510 | #define NUMA_BUILD 0 | 520 | #define NUMA_BUILD 0 |
511 | #endif | 521 | #endif |
512 | 522 | ||
523 | /* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */ | ||
524 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD | ||
525 | # define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD | ||
526 | #endif | ||
527 | |||
513 | #endif | 528 | #endif |