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:
parent
1d8134c8d2
commit
e172909335
|
@ -10,8 +10,6 @@ struct sys_info {
|
||||||
unsigned long freqLocalBus;
|
unsigned long freqLocalBus;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NSEC_PER_SEC 1000000000L
|
|
||||||
|
|
||||||
unsigned long fsl_get_bus_freq(ulong dummy);
|
unsigned long fsl_get_bus_freq(ulong dummy);
|
||||||
unsigned long fsl_get_timebase_clock(void);
|
unsigned long fsl_get_timebase_clock(void);
|
||||||
void fsl_get_sys_info(struct sys_info *sysInfo);
|
void fsl_get_sys_info(struct sys_info *sysInfo);
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
#ifndef CLOCK_H
|
#ifndef CLOCK_H
|
||||||
#define CLOCK_H
|
#define CLOCK_H
|
||||||
|
|
||||||
|
#include <linux/time.h>
|
||||||
|
|
||||||
#define CLOCKSOURCE_MASK(bits) (uint64_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
|
#define CLOCKSOURCE_MASK(bits) (uint64_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
|
||||||
|
|
||||||
struct clocksource {
|
struct clocksource {
|
||||||
|
|
|
@ -3,4 +3,6 @@
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
#define NSEC_PER_SEC 1000000000L
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue