Re: [PATCH 04/10] clocksource: Add max_cycles to clocksource structure

2015-01-09 Thread Stephen Boyd
On 01/09/2015 04:34 PM, John Stultz wrote: > diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h > index abcafaa..9b54cb9 100644 > --- a/include/linux/clocksource.h > +++ b/include/linux/clocksource.h > @@ -178,7 +178,7 @@ struct clocksource { > #ifdef CONFIG_ARCH_CLOCKSOURCE_DA

[PATCH 04/10] clocksource: Add max_cycles to clocksource structure

2015-01-09 Thread John Stultz
In order to facilitate some clocksource validation, add a max_cycles entry to the structure which will hold the maximum cycle value that can safely be multiplied without potentially causing an overflow. Cc: Dave Jones Cc: Linus Torvalds Cc: Thomas Gleixner Cc: Richard Cochran Cc: Prarit Bharga