2024-04-22 21:27:34 +00:00
|
|
|
From 0d076448cbdd64f2a07ba03f4182b86790f853c5 Mon Sep 17 00:00:00 2001
|
2024-03-04 19:01:07 +00:00
|
|
|
From: Steven Noonan <steven@uplinklabs.net>
|
|
|
|
Date: Wed, 17 Nov 2021 11:55:18 -0800
|
|
|
|
Subject: [PATCH 11/21] x86: touch clocksource watchdog after syncing TSCs
|
|
|
|
|
|
|
|
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
|
|
|
|
[Forward port to 6.5]
|
|
|
|
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
|
|
|
|
---
|
|
|
|
arch/x86/kernel/smpboot.c | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
|
2024-04-22 21:27:34 +00:00
|
|
|
index 76bb65045c64..46fd40f15deb 100644
|
2024-03-04 19:01:07 +00:00
|
|
|
--- a/arch/x86/kernel/smpboot.c
|
|
|
|
+++ b/arch/x86/kernel/smpboot.c
|
|
|
|
@@ -60,6 +60,7 @@
|
|
|
|
#include <linux/stackprotector.h>
|
|
|
|
#include <linux/cpuhotplug.h>
|
|
|
|
#include <linux/mc146818rtc.h>
|
|
|
|
+#include <linux/clocksource.h>
|
|
|
|
|
|
|
|
#include <asm/acpi.h>
|
|
|
|
#include <asm/cacheinfo.h>
|
2024-04-22 21:27:34 +00:00
|
|
|
@@ -1118,6 +1119,7 @@ void arch_thaw_secondary_cpus_begin(void)
|
2024-03-04 19:01:07 +00:00
|
|
|
|
|
|
|
void arch_thaw_secondary_cpus_end(void)
|
|
|
|
{
|
|
|
|
+ clocksource_touch_watchdog();
|
|
|
|
cache_aps_init();
|
|
|
|
}
|
|
|
|
|
2024-04-22 21:27:34 +00:00
|
|
|
@@ -1139,6 +1141,8 @@ void __init native_smp_cpus_done(unsigned int max_cpus)
|
2024-03-04 19:01:07 +00:00
|
|
|
{
|
|
|
|
pr_debug("Boot done\n");
|
|
|
|
|
|
|
|
+ clocksource_touch_watchdog();
|
|
|
|
+
|
|
|
|
build_sched_topology();
|
|
|
|
nmi_selftest();
|
2024-04-22 21:27:34 +00:00
|
|
|
impress_friends();
|
2024-03-04 19:01:07 +00:00
|
|
|
--
|
|
|
|
2.44.0
|
|
|
|
|