Skip to content
Snippets Groups Projects
Commit 840613d6 authored by Avi Kivity's avatar Avi Kivity
Browse files

sched: per-cpu timer list

Maintain the list of active timers per-cpu, instead of globally.

This removes the need for locking (other than disabling preemption).

The clock_event interface is awkward in that the callback is global, not
per-cpu.  This requires us to have a global dispatch object that then
uses cpu::current() to pick up the current cpu and dispatch the event.  We
should probably make clock_event explicitly per-cpu in the future.
parent 7b8d5d48
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment