Permalink
Browse files

CoreTiming: Reset CPU mhz on reset.

Oops - this wasn't being reset, and stayed at the previous value.
See #5530.
  • Loading branch information...
unknownbrackets committed Jun 23, 2018
1 parent fd8a061 commit 15244b7679ecf886f66447c2cb92a6038f36c32b
Showing with 2 additions and 0 deletions.
  1. +2 −0 Core/CoreTiming.cpp
@@ -34,6 +34,7 @@
#include "Core/Reporting.h"
#include "Common/ChunkFile.h"
static const int initialHz = 222000000;
int CPU_HZ = 222000000;
// is this really necessary?
@@ -211,6 +212,7 @@ void Init()
lastGlobalTimeUs = 0;
hasTsEvents = 0;
mhzChangeCallbacks.clear();
CPU_HZ = initialHz;
}
void Shutdown()

0 comments on commit 15244b7

Please sign in to comment.