diff options
| author | 2020-06-28 12:37:50 -0400 | |
|---|---|---|
| committer | 2020-06-28 12:37:50 -0400 | |
| commit | b05795d704e0c194215f815a5703db09e524b59a (patch) | |
| tree | ecf4023b4ee0c91555c1d8263762fcb9dcb04a17 /src/common/x64/native_clock.h | |
| parent | Merge pull request #4196 from ogniK5377/nrr-nro-fixes (diff) | |
| parent | Core/Common: Address Feedback. (diff) | |
| download | yuzu-b05795d704e0c194215f815a5703db09e524b59a.tar.gz yuzu-b05795d704e0c194215f815a5703db09e524b59a.tar.xz yuzu-b05795d704e0c194215f815a5703db09e524b59a.zip | |
Merge pull request #3955 from FernandoS27/prometheus-2b
Remake Kernel Scheduling, CPU Management & Boot Management (Prometheus)
Diffstat (limited to 'src/common/x64/native_clock.h')
| -rw-r--r-- | src/common/x64/native_clock.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/x64/native_clock.h b/src/common/x64/native_clock.h index b58cf9f5a..891a3bbfd 100644 --- a/src/common/x64/native_clock.h +++ b/src/common/x64/native_clock.h | |||
| @@ -26,9 +26,16 @@ public: | |||
| 26 | 26 | ||
| 27 | u64 GetCPUCycles() override; | 27 | u64 GetCPUCycles() override; |
| 28 | 28 | ||
| 29 | void Pause(bool is_paused) override; | ||
| 30 | |||
| 29 | private: | 31 | private: |
| 30 | u64 GetRTSC(); | 32 | u64 GetRTSC(); |
| 31 | 33 | ||
| 34 | /// value used to reduce the native clocks accuracy as some apss rely on | ||
| 35 | /// undefined behavior where the level of accuracy in the clock shouldn't | ||
| 36 | /// be higher. | ||
| 37 | static constexpr u64 inaccuracy_mask = ~(0x400 - 1); | ||
| 38 | |||
| 32 | SpinLock rtsc_serialize{}; | 39 | SpinLock rtsc_serialize{}; |
| 33 | u64 last_measure{}; | 40 | u64 last_measure{}; |
| 34 | u64 accumulated_ticks{}; | 41 | u64 accumulated_ticks{}; |