Skip to content

Commit 5698429

Browse files
tytydracoDhineshCool
authored andcommitted
timers: Disable the migration of timers among CPUs
Usually, when a timer is created on one CPU, it would be able to be migrated to another CPU. However, this increases realtime latencies and scheduling interrupts. It can be turned off. Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
1 parent d63a1b6 commit 5698429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/time/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ struct timer_base timer_base_deferrable;
212212
static atomic_t deferrable_pending;
213213

214214
#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON)
215-
unsigned int sysctl_timer_migration = 1;
215+
unsigned int sysctl_timer_migration = 0;
216216

217217
void timers_update_migration(bool update_nohz)
218218
{

0 commit comments

Comments
 (0)