9
0
Fork 0

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:
Jean-Christophe PLAGNIOL-VILLARD 2010-11-26 20:56:26 +01:00 committed by Sascha Hauer
parent 53dbaf3fc7
commit c448d8c659
1 changed files with 2 additions and 0 deletions

View File

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