lkml.org 
[lkml]   [2011]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/17] UAPI: Rearrange definition of HZ in asm-generic/param.h
    Date
    Rearrange the definition of HZ in asm-generic/param.h so that the user-specific
    is declared before the kernel-specific one. We then explicitly #undef the
    userspace HZ value and replace it with the kernel HZ value.

    This allows the userspace params to be excised into a separate header as part
    of the UAPI header split.

    Signed-off-by: David Howells <dhowells@redhat.com>
    Acked-by: Arnd Bergmann <arnd@arndb.de>
    ---
    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 cdf8251..835632a 100644
    --- a/include/asm-generic/param.h
    +++ b/include/asm-generic/param.h
    @@ -1,12 +1,6 @@
    #ifndef __ASM_GENERIC_PARAM_H
    #define __ASM_GENERIC_PARAM_H

    -#ifdef __KERNEL__
    -# define HZ CONFIG_HZ /* Internal kernel timer frequency */
    -# define USER_HZ 100 /* some user interfaces are */
    -# define CLOCKS_PER_SEC (USER_HZ) /* in "ticks" like times() */
    -#endif
    -
    #ifndef HZ
    #define HZ 100
    #endif
    @@ -21,4 +15,11 @@

    #define MAXHOSTNAMELEN 64 /* max length of hostname */

    +#ifdef __KERNEL__
    +# undef HZ
    +# define HZ CONFIG_HZ /* Internal kernel timer frequency */
    +# define USER_HZ 100 /* some user interfaces are */
    +# define CLOCKS_PER_SEC (USER_HZ) /* in "ticks" like times() */
    +#endif
    +
    #endif /* __ASM_GENERIC_PARAM_H */
    --
    1.7.7.4


    \
     
     \ /
      Last update: 2011-12-13 11:43    [W:0.023 / U:0.552 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site