From e172909335b6238fca9d2f3f98f4de8331ed1501 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Thu, 28 Jun 2012 22:32:32 +0400 Subject: [PATCH] clocksource: move the NSEC_PER_SEC constant to common header Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- arch/ppc/mach-mpc85xx/include/mach/clocks.h | 2 -- include/clock.h | 2 ++ include/linux/time.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/ppc/mach-mpc85xx/include/mach/clocks.h b/arch/ppc/mach-mpc85xx/include/mach/clocks.h index 94771682e..2ab367b2e 100644 --- a/arch/ppc/mach-mpc85xx/include/mach/clocks.h +++ b/arch/ppc/mach-mpc85xx/include/mach/clocks.h @@ -10,8 +10,6 @@ struct sys_info { unsigned long freqLocalBus; }; -#define NSEC_PER_SEC 1000000000L - unsigned long fsl_get_bus_freq(ulong dummy); unsigned long fsl_get_timebase_clock(void); void fsl_get_sys_info(struct sys_info *sysInfo); diff --git a/include/clock.h b/include/clock.h index 123f8747a..c01a8d00a 100644 --- a/include/clock.h +++ b/include/clock.h @@ -3,6 +3,8 @@ #ifndef CLOCK_H #define CLOCK_H +#include + #define CLOCKSOURCE_MASK(bits) (uint64_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1) struct clocksource { diff --git a/include/linux/time.h b/include/linux/time.h index 7d9f0e3d6..3942e82e1 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -3,4 +3,6 @@ #include +#define NSEC_PER_SEC 1000000000L + #endif