Skip to contentSkip to conversation

Which CPU do timers run on?

DISCUSSION Timur Tabi 2 participants 2 messages Sep 9, 2001 – Sep 10, 2001

lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

When I create a timer (init_timer(), etc) on an SMP system, will the timer always run on one CPU, or can it run on any CPU? If I disabled interrupts on only one CPU, will that disable the timer completely?

#1 lore raw
Quoted 5 lines · Timur Tabi

When I create a timer (init_timer(), etc) on an SMP system, will the timer always run on one CPU, or can it run on any CPU? If I disabled interrupts on only one CPU, will that disable the timer completely?

I believe that timers, like other interrupts, are handled by the CPU pool. Interrupts can be pinned to a particular cpu, but I don't think the timer interrupt is.

George