Re: [PATCHv3 1/3] sched_clock: Add support for >32 bit sched_clock

2013-06-05 Thread Stephen Boyd
On 06/05, John Stultz wrote: > On 06/05/2013 04:54 PM, Stephen Boyd wrote: > > > >I've noticed that we probably need to update the mult/shift > >calculation similar to how clocksources are done. Should we > >just copy/paste the maxsec calculation code here or do something > >smarter? > > So, the c

Re: [PATCHv3 1/3] sched_clock: Add support for >32 bit sched_clock

2013-06-05 Thread John Stultz
On 06/05/2013 04:54 PM, Stephen Boyd wrote: The ARM architected system counter has at least 56 useable bits. Add support for counters with more than 32 bits to the generic sched_clock implementation so we can avoid the complexity of dealing with wrap-around on these devices while benefiting from

[PATCHv3 1/3] sched_clock: Add support for >32 bit sched_clock

2013-06-05 Thread Stephen Boyd
The ARM architected system counter has at least 56 useable bits. Add support for counters with more than 32 bits to the generic sched_clock implementation so we can avoid the complexity of dealing with wrap-around on these devices while benefiting from the irqtime accounting and suspend/resume hand