From: Atsushi Nemoto Date: Wed, 30 Jan 2008 12:30:01 +0000 (+0100) Subject: clocksource: make CLOCKSOURCE_MASK bullet-proof X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1d76c2622813fbc692b0d323028cfef9ee36051a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git clocksource: make CLOCKSOURCE_MASK bullet-proof Signed-off-by: Atsushi Nemoto Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 107787aacb64..07b42153de24 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -103,7 +103,7 @@ struct clocksource { #define CLOCK_SOURCE_VALID_FOR_HRES 0x20 /* simplify initialization of mask field */ -#define CLOCKSOURCE_MASK(bits) (cycle_t)(bits<64 ? ((1ULL<