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

clockevent: document cpu locality

Each cpu has its own event timer; we rely on this.  Document the requirement.
parent ad2668a4
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,14 @@
class clock_event_callback {
public:
virtual ~clock_event_callback();
// note: must always be called on the same cpu that the timer was set on
virtual void fired() = 0;
};
class clock_event_driver {
public:
virtual ~clock_event_driver();
// set() is cpu-local: each processor has its own timer
virtual void set(u64 time) = 0;
void set_callback(clock_event_callback* callback);
clock_event_callback* callback() const;
......
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