aboutsummaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2023-01-31 09:37:28 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-31 20:44:55 +0100
commite6d77a49cfabf59369aa13694459079ad3b16a86 (patch)
treedbbc9cd18db07159e332eab3098a7cce3e77affa /linux
parent965ac8f4aa3db377475871c16731dac90810e878 (diff)
downloadgnumach-e6d77a49cfabf59369aa13694459079ad3b16a86.tar.gz
gnumach-e6d77a49cfabf59369aa13694459079ad3b16a86.tar.bz2
gnumach-e6d77a49cfabf59369aa13694459079ad3b16a86.zip
linux: Skip updating jiffies on AP timer
Message-Id: <20230131093428.756906-7-damien@zamaudio.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/dev/kernel/sched.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/dev/kernel/sched.c b/linux/dev/kernel/sched.c
index 2a9eeb3f..f87482ef 100644
--- a/linux/dev/kernel/sched.c
+++ b/linux/dev/kernel/sched.c
@@ -616,6 +616,9 @@ int linux_timer_print = 0;
void
linux_timer_intr (void)
{
+ if (cpu_number() != master_cpu)
+ return;
+
(*(unsigned long *) &jiffies)++;
mark_bh (TIMER_BH);
if (tq_timer)