diff options
author | Damien Zammit <damien@zamaudio.com> | 2023-01-31 09:37:28 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-31 20:44:55 +0100 |
commit | e6d77a49cfabf59369aa13694459079ad3b16a86 (patch) | |
tree | dbbc9cd18db07159e332eab3098a7cce3e77affa /linux | |
parent | 965ac8f4aa3db377475871c16731dac90810e878 (diff) | |
download | gnumach-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.c | 3 |
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) |