summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar Matías Locatti2022-12-19 18:37:34 -0300
committerGravatar GitHub2022-12-19 18:37:34 -0300
commite44d1fe73cc5fac4cfab0d3d8660dbb46d60cafc (patch)
treeabfcbf2c097e1bb0b1297f0af90b94c055bc242c /src/core/hle/kernel/kernel.h
parentMerge pull request #9471 from german77/input (diff)
parentkernel: remove TimeManager (diff)
downloadyuzu-e44d1fe73cc5fac4cfab0d3d8660dbb46d60cafc.tar.gz
yuzu-e44d1fe73cc5fac4cfab0d3d8660dbb46d60cafc.tar.xz
yuzu-e44d1fe73cc5fac4cfab0d3d8660dbb46d60cafc.zip
Merge pull request #9474 from liamwhite/timer
kernel: add KHardwareTimer
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 2e22fe0f6..8d22f8d2c 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -39,6 +39,7 @@ class KDynamicPageManager;
39class KEvent; 39class KEvent;
40class KEventInfo; 40class KEventInfo;
41class KHandleTable; 41class KHandleTable;
42class KHardwareTimer;
42class KLinkedListNode; 43class KLinkedListNode;
43class KMemoryLayout; 44class KMemoryLayout;
44class KMemoryManager; 45class KMemoryManager;
@@ -63,7 +64,6 @@ class KCodeMemory;
63class PhysicalCore; 64class PhysicalCore;
64class ServiceThread; 65class ServiceThread;
65class Synchronization; 66class Synchronization;
66class TimeManager;
67 67
68using ServiceInterfaceFactory = 68using ServiceInterfaceFactory =
69 std::function<KClientPort&(Service::SM::ServiceManager&, Core::System&)>; 69 std::function<KClientPort&(Service::SM::ServiceManager&, Core::System&)>;
@@ -175,11 +175,8 @@ public:
175 /// Gets the an instance of the current physical CPU core. 175 /// Gets the an instance of the current physical CPU core.
176 const Kernel::PhysicalCore& CurrentPhysicalCore() const; 176 const Kernel::PhysicalCore& CurrentPhysicalCore() const;
177 177
178 /// Gets the an instance of the TimeManager Interface. 178 /// Gets the an instance of the hardware timer.
179 Kernel::TimeManager& TimeManager(); 179 Kernel::KHardwareTimer& HardwareTimer();
180
181 /// Gets the an instance of the TimeManager Interface.
182 const Kernel::TimeManager& TimeManager() const;
183 180
184 /// Stops execution of 'id' core, in order to reschedule a new thread. 181 /// Stops execution of 'id' core, in order to reschedule a new thread.
185 void PrepareReschedule(std::size_t id); 182 void PrepareReschedule(std::size_t id);