aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/clocksource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 5f4a7f72f3ee..4bc94282c364 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -65,6 +65,8 @@ struct clocksource {
65 u64 interval_snsecs; 65 u64 interval_snsecs;
66}; 66};
67 67
68/* simplify initialization of mask field */
69#define CLOCKSOURCE_MASK(bits) (cycle_t)(bits<64 ? ((1ULL<<bits)-1) : -1)
68 70
69/** 71/**
70 * clocksource_khz2mult - calculates mult from khz and shift 72 * clocksource_khz2mult - calculates mult from khz and shift