diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 293fa0677fba..3cbf3cfff4f0 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -480,6 +480,15 @@ extern int func_ptr_is_kernel_text(void *ptr); | |||
480 | 480 | ||
481 | unsigned long int_sqrt(unsigned long); | 481 | unsigned long int_sqrt(unsigned long); |
482 | 482 | ||
483 | #if BITS_PER_LONG < 64 | ||
484 | u32 int_sqrt64(u64 x); | ||
485 | #else | ||
486 | static inline u32 int_sqrt64(u64 x) | ||
487 | { | ||
488 | return (u32)int_sqrt(x); | ||
489 | } | ||
490 | #endif | ||
491 | |||
483 | extern void bust_spinlocks(int yes); | 492 | extern void bust_spinlocks(int yes); |
484 | extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in progress */ | 493 | extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in progress */ |
485 | extern int panic_timeout; | 494 | extern int panic_timeout; |