In the kernel test module, I wrote for monitoring / profiling a task, I tried to disable interrupts:
1 - Using local_irq_save ()
2 - Using spin_lock_irqsave ()
3 - Manually disable_irq () for all IRQs in / proc / interrupts
In all three cases, I could still use hrtimer to measure time, even though the IRQs were disabled (and the task that I controlled was also offloaded).
I find this veeeeerrrryyyy weird ... I personally expected Sebastian Mountaniol to point -> No interruptions - no hours. No hours - no timers ...
The Linux 2.6.32 kernel on one core, one processor ... Can anyone have a better explanation?
user3297145
source share