lkml.org 
[lkml]   [2020]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [patch 08/15] x86/vdso: Move VDSO clocksource state tracking to callback
Date
From: Thomas Gleixner <tglx@linutronix.de> Sent: Tuesday, January 14, 2020 10:53 AM
>
> All architectures which use the generic VDSO code have their own storage
> for the VDSO clock mode. That's pointless and just requires duplicate code.
>
> X86 abuses the function which retrieves the architecture specific clock
> mode storage to mark the clocksource as used in the VDSO. That's silly
> because this is invoked on every tick when the VDSO data is updated.
>
> Move this functionality to the clocksource::enable() callback so it gets
> invoked once when the clocksource is installed. This allows to make the
> clock mode storage generic.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Reviewed-by: Michael Kelley <mikelley@microsoft.com> (Hyper-V parts)
\
 
 \ /
  Last update: 2020-01-20 02:42    [W:0.106 / U:6.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site