From: Atsushi Nemoto Date: Wed, 30 Jan 2008 12:30:01 +0000 (+0100) Subject: clocksource: make CLOCKSOURCE_MASK bullet-proof X-Git-Tag: v2.6.25-rc1~1143^2~884 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d76c2622813fbc692b0d323028cfef9ee36051a;p=thirdparty%2Fkernel%2Flinux.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 107787aacb647..07b42153de245 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<