diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kernel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 144b615f3a..8645181fca 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -41,6 +41,16 @@ extern const char linux_proc_banner[]; | |||
| 41 | #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) | 41 | #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) |
| 42 | #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) | 42 | #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) |
| 43 | 43 | ||
| 44 | /** | ||
| 45 | * upper_32_bits - return bits 32-63 of a number | ||
| 46 | * @n: the number we're accessing | ||
| 47 | * | ||
| 48 | * A basic shift-right of a 64- or 32-bit quantity. Use this to suppress | ||
| 49 | * the "right shift count >= width of type" warning when that quantity is | ||
| 50 | * 32-bits. | ||
| 51 | */ | ||
| 52 | #define upper_32_bits(n) ((u32)(((n) >> 16) >> 16)) | ||
| 53 | |||
| 44 | #define KERN_EMERG "<0>" /* system is unusable */ | 54 | #define KERN_EMERG "<0>" /* system is unusable */ |
| 45 | #define KERN_ALERT "<1>" /* action must be taken immediately */ | 55 | #define KERN_ALERT "<1>" /* action must be taken immediately */ |
| 46 | #define KERN_CRIT "<2>" /* critical conditions */ | 56 | #define KERN_CRIT "<2>" /* critical conditions */ |
