9
0
Fork 0

clocksource: move the NSEC_PER_SEC constant to common header

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2012-06-28 22:32:32 +04:00 committed by Sascha Hauer
parent 1d8134c8d2
commit e172909335
3 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -3,6 +3,8 @@
#ifndef CLOCK_H
#define CLOCK_H
#include <linux/time.h>
#define CLOCKSOURCE_MASK(bits) (uint64_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
struct clocksource {

View File

@ -3,4 +3,6 @@
#include <linux/types.h>
#define NSEC_PER_SEC 1000000000L
#endif