OSDN Git Service

clocksource/drivers/hyper-v: Set TSC clocksource as default w/ InvariantTSC
authorAndrea Parri <parri.andrea@gmail.com>
Thu, 9 Jan 2020 16:06:50 +0000 (17:06 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 16 Jan 2020 18:09:02 +0000 (19:09 +0100)
commit9e0333ae38eeb42249e10f95d209244a6e22ac9f
tree416c308f2bf62db3c4c4cd236d155ba0f7057db3
parent0af3e137c144377fbaf5025ba784ff5ba7ad40c9
clocksource/drivers/hyper-v: Set TSC clocksource as default w/ InvariantTSC

Change the Hyper-V clocksource ratings to 250, below the TSC clocksource
rating of 300.  In configurations where Hyper-V offers an InvariantTSC,
the TSC is not marked "unstable", so the TSC clocksource is available
and preferred.  With the higher rating, it will be the default.  On
older hardware and Hyper-V versions, the TSC is marked "unstable", so no
TSC clocksource is created and the selected Hyper-V clocksource will be
the default.

Signed-off-by: Andrea Parri <parri.andrea@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200109160650.16150-3-parri.andrea@gmail.com
drivers/clocksource/hyperv_timer.c