diff options
| author | 2015-05-19 20:24:30 -0400 | |
|---|---|---|
| committer | 2015-05-20 18:05:47 -0400 | |
| commit | 0b7d2941cf358cfdbfd32b0e5fb8fcca4180336f (patch) | |
| tree | bce96a583e8069dc22e508df62de6cd03f394efc /src/core/hle/kernel/timer.cpp | |
| parent | Merge pull request #783 from jroweboy/cond-wait (diff) | |
| download | yuzu-0b7d2941cf358cfdbfd32b0e5fb8fcca4180336f.tar.gz yuzu-0b7d2941cf358cfdbfd32b0e5fb8fcca4180336f.tar.xz yuzu-0b7d2941cf358cfdbfd32b0e5fb8fcca4180336f.zip | |
Kernel: Move reschedules from SVCs to actual mechanisms that reschedule.
Diffstat (limited to 'src/core/hle/kernel/timer.cpp')
| -rw-r--r-- | src/core/hle/kernel/timer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp index e69fece65..25d066bf1 100644 --- a/src/core/hle/kernel/timer.cpp +++ b/src/core/hle/kernel/timer.cpp | |||
| @@ -52,10 +52,14 @@ void Timer::Set(s64 initial, s64 interval) { | |||
| 52 | u64 initial_microseconds = initial / 1000; | 52 | u64 initial_microseconds = initial / 1000; |
| 53 | CoreTiming::ScheduleEvent(usToCycles(initial_microseconds), | 53 | CoreTiming::ScheduleEvent(usToCycles(initial_microseconds), |
| 54 | timer_callback_event_type, callback_handle); | 54 | timer_callback_event_type, callback_handle); |
| 55 | |||
| 56 | HLE::Reschedule(__func__); | ||
| 55 | } | 57 | } |
| 56 | 58 | ||
| 57 | void Timer::Cancel() { | 59 | void Timer::Cancel() { |
| 58 | CoreTiming::UnscheduleEvent(timer_callback_event_type, callback_handle); | 60 | CoreTiming::UnscheduleEvent(timer_callback_event_type, callback_handle); |
| 61 | |||
| 62 | HLE::Reschedule(__func__); | ||
| 59 | } | 63 | } |
| 60 | 64 | ||
| 61 | void Timer::Clear() { | 65 | void Timer::Clear() { |