diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-11-07 10:02:32 +1100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-11-07 15:54:22 +1100 |
commit | ffecdd630b4ff48c8d5b94da1c8044e0c927c6f2 (patch) | |
tree | 975b88e2f6b960416895356901975b3caa02db30 /core/opal.c | |
parent | 9e29e3f29faad28e43b6e1b69f57d83935229f44 (diff) | |
download | talos-skiboot-ffecdd630b4ff48c8d5b94da1c8044e0c927c6f2.tar.gz talos-skiboot-ffecdd630b4ff48c8d5b94da1c8044e0c927c6f2.zip |
timer: Add scheduled timer facility
For now running off the event pollers, that will improve once we get
delayed interrupts from the SLW
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'core/opal.c')
-rw-r--r-- | core/opal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/opal.c b/core/opal.c index ef199275..0dab3f70 100644 --- a/core/opal.c +++ b/core/opal.c @@ -28,6 +28,7 @@ #include <timebase.h> #include <affinity.h> #include <opal-msg.h> +#include <timer.h> /* Pending events to signal via opal_poll_events */ uint64_t opal_pending_events; @@ -278,6 +279,9 @@ void opal_run_pollers(void) { struct opal_poll_entry *poll_ent; + /* We run the timers first */ + check_timers(); + /* The pollers are run lokelessly, see comment in opal_del_poller */ list_for_each(&opal_pollers, poll_ent, link) poll_ent->poller(poll_ent->data); |