Re: [PATCH v6, part3 16/16] AVR32: fix building warnings caused by redifinitions of HZ

From: David Howells
Date: Mon May 13 2013 - 05:40:45 EST


Jiang Liu <liuj97@xxxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/