hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/kernel/time/tick-broadcast-hrtimer.c
....@@ -1,8 +1,6 @@
11 // SPDX-License-Identifier: GPL-2.0
22 /*
3
- * linux/kernel/time/tick-broadcast-hrtimer.c
4
- * This file emulates a local clock event device
5
- * via a pseudo clock device.
3
+ * Emulate a local clock event device via a pseudo clock device.
64 */
75 #include <linux/cpu.h>
86 #include <linux/err.h>
....@@ -64,7 +62,7 @@
6462 * hrtimer_start() can call into tracing.
6563 */
6664 RCU_NONIDLE( {
67
- hrtimer_start(&bctimer, expires, HRTIMER_MODE_ABS_PINNED);
65
+ hrtimer_start(&bctimer, expires, HRTIMER_MODE_ABS_PINNED_HARD);
6866 /*
6967 * The core tick broadcast mode expects bc->bound_on to be set
7068 * correctly to prevent a CPU which has the broadcast hrtimer
....@@ -107,7 +105,7 @@
107105
108106 void tick_setup_hrtimer_broadcast(void)
109107 {
110
- hrtimer_init(&bctimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
108
+ hrtimer_init(&bctimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD);
111109 bctimer.function = bc_handler;
112110 clockevents_register_device(&ce_broadcast_hrtimer);
113111 }