Re: [Xen-devel] [PATCH v2] x86/hpet: Improve handling of timer_deadline

2017-08-15 Thread Andrew Cooper
On 15/08/17 14:46, Jan Beulich wrote: On 15.08.17 at 15:13, wrote: >> timer_deadline is only ever updated via this_cpu() in timer_softirq_action(), >> so is not going to change behind the back of the currently running cpu. >> >> Update hpet_broadcast_{enter,exit}()

Re: [Xen-devel] [PATCH v2] x86/hpet: Improve handling of timer_deadline

2017-08-15 Thread Jan Beulich
>>> On 15.08.17 at 15:13, wrote: > timer_deadline is only ever updated via this_cpu() in timer_softirq_action(), > so is not going to change behind the back of the currently running cpu. > > Update hpet_broadcast_{enter,exit}() to cache the value in a local variable to

[Xen-devel] [PATCH v2] x86/hpet: Improve handling of timer_deadline

2017-08-15 Thread Andrew Cooper
timer_deadline is only ever updated via this_cpu() in timer_softirq_action(), so is not going to change behind the back of the currently running cpu. Update hpet_broadcast_{enter,exit}() to cache the value in a local variable to avoid the repeated RELOC_HIDE() penalty. handle_hpet_broadcast()