clocksource: import CLOCKSOURCE_MASK from the kernel
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
53dbaf3fc7
commit
c448d8c659
|
@ -3,6 +3,8 @@
|
|||
#ifndef CLOCK_H
|
||||
#define CLOCK_H
|
||||
|
||||
#define CLOCKSOURCE_MASK(bits) (uint64_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
|
||||
|
||||
struct clocksource {
|
||||
uint32_t shift;
|
||||
uint32_t mult;
|
||||
|
|
Loading…
Reference in New Issue