Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-19 Thread Alexey Brodkin
Hi Daniel, On Mon, 2018-11-19 at 10:58 +0100, Daniel Lezcano wrote: > Hi Alexey, > > On 19/11/2018 10:55, Alexey Brodkin wrote: > > Hi Daniel, > > [ ... ] > > > > > In that case do I understand correctly that we may enable > > > > GENERIC_SCHED_CLOCK > > > > for ARC even before proposed change

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-19 Thread Daniel Lezcano
Hi Alexey, On 19/11/2018 10:55, Alexey Brodkin wrote: > Hi Daniel, [ ... ] >>> In that case do I understand correctly that we may enable >>> GENERIC_SCHED_CLOCK >>> for ARC even before proposed change for arc_timer.c gets merged - i.e. with >>> no >>> special GENERIC_SCHED_CLOCK driver we'll

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-19 Thread Alexey Brodkin
Hi Daniel, On Mon, 2018-11-19 at 10:43 +0100, Daniel Lezcano wrote: > On 19/11/2018 10:31, Alexey Brodkin wrote: > > Hi Daniel, > > > > On Sun, 2018-11-18 at 03:17 +0100, Daniel Lezcano wrote: > > > On 05/11/2018 15:39, Daniel Lezcano wrote: > > > > On 24/10/2018 00:33, Vineet Gupta wrote: > > >

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-19 Thread Daniel Lezcano
On 19/11/2018 10:31, Alexey Brodkin wrote: > Hi Daniel, > > On Sun, 2018-11-18 at 03:17 +0100, Daniel Lezcano wrote: >> On 05/11/2018 15:39, Daniel Lezcano wrote: >>> On 24/10/2018 00:33, Vineet Gupta wrote: On 10/17/2018 04:30 AM, Alexey Brodkin wrote: > It turned out we used to use defa

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-19 Thread Alexey Brodkin
Hi Daniel, On Sun, 2018-11-18 at 03:17 +0100, Daniel Lezcano wrote: > On 05/11/2018 15:39, Daniel Lezcano wrote: > > On 24/10/2018 00:33, Vineet Gupta wrote: > > > On 10/17/2018 04:30 AM, Alexey Brodkin wrote: > > > > It turned out we used to use default implementation of sched_clock() > > > > fro

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-17 Thread Daniel Lezcano
On 05/11/2018 15:39, Daniel Lezcano wrote: > On 24/10/2018 00:33, Vineet Gupta wrote: >> On 10/17/2018 04:30 AM, Alexey Brodkin wrote: >>> It turned out we used to use default implementation of sched_clock() >>> from kernel/sched/clock.c which was as precise as 1/HZ, i.e. >>> by default we had 10 m

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-05 Thread Daniel Lezcano
On 24/10/2018 00:33, Vineet Gupta wrote: > On 10/17/2018 04:30 AM, Alexey Brodkin wrote: >> It turned out we used to use default implementation of sched_clock() >> from kernel/sched/clock.c which was as precise as 1/HZ, i.e. >> by default we had 10 msec granularity of time measurement. >> >> Now gi

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-05 Thread Daniel Lezcano
On 24/10/2018 00:33, Vineet Gupta wrote: > On 10/17/2018 04:30 AM, Alexey Brodkin wrote: >> It turned out we used to use default implementation of sched_clock() >> from kernel/sched/clock.c which was as precise as 1/HZ, i.e. >> by default we had 10 msec granularity of time measurement. >> >> Now gi

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-10-23 Thread Vineet Gupta
On 10/17/2018 04:30 AM, Alexey Brodkin wrote: > It turned out we used to use default implementation of sched_clock() > from kernel/sched/clock.c which was as precise as 1/HZ, i.e. > by default we had 10 msec granularity of time measurement. > > Now given ARC built-in timers are clocked with the sam

[PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-10-17 Thread Alexey Brodkin
It turned out we used to use default implementation of sched_clock() from kernel/sched/clock.c which was as precise as 1/HZ, i.e. by default we had 10 msec granularity of time measurement. Now given ARC built-in timers are clocked with the same frequency as CPU cores we may get much higher precisi