diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 21:03:30 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 21:03:30 -0500 |
| commit | dca88ad6915b65f6e037f8c3e632fcd92a70bd88 (patch) | |
| tree | a3dcbe53310997dcc37c7d49129c48febef53992 /include/asm-generic | |
| parent | fed474857efbed79cd390d0aee224231ca718f63 (diff) | |
| parent | 1632b9e2a14ce9f4e08faf6c4380431d63319bd3 (diff) | |
Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
* 'for-next' of git://git.infradead.org/users/dhowells/linux-headers:
UAPI: Split trivial #if defined(__KERNEL__) && X conditionals
UAPI: Don't have a #elif clause in a __KERNEL__ guard in linux/soundcard.h
UAPI: Fix AHZ multiple inclusion when __KERNEL__ is removed
UAPI: Make linux/patchkey.h easier to parse
UAPI: Fix nested __KERNEL__ guards in video/edid.h
UAPI: Alter the S390 asm include guards to be recognisable by the UAPI splitter
UAPI: Guard linux/cuda.h
UAPI: Guard linux/pmu.h
UAPI: Guard linux/isdn_divertif.h
UAPI: Guard linux/sound.h
UAPI: Rearrange definition of HZ in asm-generic/param.h
UAPI: Make FRV use asm-generic/param.h
UAPI: Make M32R use asm-generic/param.h
UAPI: Make MN10300 use asm-generic/param.h
UAPI: elf_read_implies_exec() is a kernel-only feature - so hide from userspace
UAPI: Don't include linux/compat.h in sparc's asm/siginfo.h
UAPI: Fix arch/mips/include/asm/Kbuild to have separate header-y lines
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/param.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/asm-generic/param.h b/include/asm-generic/param.h index cdf8251bfb6c..835632a3b468 100644 --- a/include/asm-generic/param.h +++ b/include/asm-generic/param.h | |||
| @@ -1,12 +1,6 @@ | |||
| 1 | #ifndef __ASM_GENERIC_PARAM_H | 1 | #ifndef __ASM_GENERIC_PARAM_H |
| 2 | #define __ASM_GENERIC_PARAM_H | 2 | #define __ASM_GENERIC_PARAM_H |
| 3 | 3 | ||
| 4 | #ifdef __KERNEL__ | ||
| 5 | # define HZ CONFIG_HZ /* Internal kernel timer frequency */ | ||
| 6 | # define USER_HZ 100 /* some user interfaces are */ | ||
| 7 | # define CLOCKS_PER_SEC (USER_HZ) /* in "ticks" like times() */ | ||
| 8 | #endif | ||
| 9 | |||
| 10 | #ifndef HZ | 4 | #ifndef HZ |
| 11 | #define HZ 100 | 5 | #define HZ 100 |
| 12 | #endif | 6 | #endif |
| @@ -21,4 +15,11 @@ | |||
| 21 | 15 | ||
| 22 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ | 16 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ |
| 23 | 17 | ||
| 18 | #ifdef __KERNEL__ | ||
| 19 | # undef HZ | ||
| 20 | # define HZ CONFIG_HZ /* Internal kernel timer frequency */ | ||
| 21 | # define USER_HZ 100 /* some user interfaces are */ | ||
| 22 | # define CLOCKS_PER_SEC (USER_HZ) /* in "ticks" like times() */ | ||
| 23 | #endif | ||
| 24 | |||
| 24 | #endif /* __ASM_GENERIC_PARAM_H */ | 25 | #endif /* __ASM_GENERIC_PARAM_H */ |
