* [PATCH] x86/jailhouse: Set X86_FEATURE_TSC_KNOWN_FREQ
@ 2018-01-19 10:06 Jan Kiszka
2018-01-20 7:19 ` [tip:x86/platform] " tip-bot for Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2018-01-19 10:06 UTC (permalink / raw)
To: x86, Thomas Gleixner
Cc: Jailhouse, Ingo Molnar, H. Peter Anvin, Linux Kernel Mailing List
Otherwise, Linux will not recognize precalibrated_tsc_khz and disable
the tsc as clocksource.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
arch/x86/kernel/jailhouse.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c
index 7ade152133c7..2b7ebbe9043d 100644
--- a/arch/x86/kernel/jailhouse.c
+++ b/arch/x86/kernel/jailhouse.c
@@ -176,6 +176,7 @@ static void __init jailhouse_init_platform(void)
pr_debug("Jailhouse: PM-Timer IO Port: %#x\n", pmtmr_ioport);
precalibrated_tsc_khz = setup_data.tsc_khz;
+ setup_force_cpu_cap(X86_FEATURE_TSC_KNOWN_FREQ);
pci_probe = 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:x86/platform] x86/jailhouse: Set X86_FEATURE_TSC_KNOWN_FREQ
2018-01-19 10:06 [PATCH] x86/jailhouse: Set X86_FEATURE_TSC_KNOWN_FREQ Jan Kiszka
@ 2018-01-20 7:19 ` tip-bot for Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Jan Kiszka @ 2018-01-20 7:19 UTC (permalink / raw)
To: linux-tip-commits
Cc: mingo, jan.kiszka, tglx, linux-kernel, jailhouse-dev, hpa
Commit-ID: 11f19ec025dd421c54978c69e42d86758fa310de
Gitweb: https://git.kernel.org/tip/11f19ec025dd421c54978c69e42d86758fa310de
Author: Jan Kiszka <jan.kiszka@siemens.com>
AuthorDate: Fri, 19 Jan 2018 11:06:17 +0100
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Sat, 20 Jan 2018 08:15:43 +0100
x86/jailhouse: Set X86_FEATURE_TSC_KNOWN_FREQ
Otherwise, Linux will not recognize precalibrated_tsc_khz and disable
the tsc as clocksource.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jailhouse <jailhouse-dev@googlegroups.com>
Link: https://lkml.kernel.org/r/975fbfc9-2a64-cc56-40d5-164992ec3916@siemens.com
---
arch/x86/kernel/jailhouse.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c
index 7ade152..2b7ebbe 100644
--- a/arch/x86/kernel/jailhouse.c
+++ b/arch/x86/kernel/jailhouse.c
@@ -176,6 +176,7 @@ static void __init jailhouse_init_platform(void)
pr_debug("Jailhouse: PM-Timer IO Port: %#x\n", pmtmr_ioport);
precalibrated_tsc_khz = setup_data.tsc_khz;
+ setup_force_cpu_cap(X86_FEATURE_TSC_KNOWN_FREQ);
pci_probe = 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-20 7:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 10:06 [PATCH] x86/jailhouse: Set X86_FEATURE_TSC_KNOWN_FREQ Jan Kiszka
2018-01-20 7:19 ` [tip:x86/platform] " tip-bot for Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).