lkml.org 
[lkml]   [2013]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v6, part3 16/16] AVR32: fix building warnings caused by redifinitions of HZ
Date
Jiang Liu <liuj97@gmail.com> wrote:

> -#ifndef HZ
> +#ifndef __KERNEL__
> + /*
> + * Technically, this is wrong, but some old apps still refer to it.
> + * The proper way to get the HZ value is via sysconf(_SC_CLK_TCK).
> + */
> # define HZ 100
> #endif

Better still, use asm-generic/param.h and uapi/asm-generic/param.h for AVR32
instead.

David



\
 
 \ /
  Last update: 2013-05-14 02:01    [W:0.112 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site