mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
Revert cpufreq :)
This commit is contained in:
parent
aef53708dd
commit
6bafb7075a
@ -45,7 +45,6 @@ static int powerCbSlots[numberOfCBPowerSlots];
|
||||
|
||||
// this should belong here on in CoreTiming?
|
||||
static int pllFreq = 222;
|
||||
static int cpuFreq = 222;
|
||||
static int busFreq = 111;
|
||||
|
||||
void __PowerInit() {
|
||||
@ -219,15 +218,15 @@ int sceKernelVolatileMemLock(int type, int paddr, int psize) {
|
||||
|
||||
|
||||
u32 scePowerSetClockFrequency(u32 pllfreq, u32 cpufreq, u32 busfreq) {
|
||||
CoreTiming::SetClockFrequencyMHz(cpufreq);
|
||||
pllFreq = pllfreq;
|
||||
busFreq = busfreq;
|
||||
cpuFreq = cpufreq;
|
||||
INFO_LOG(HLE,"scePowerSetClockFrequency(%i,%i,%i)", pllfreq, cpufreq, busfreq);
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 scePowerSetCpuClockFrequency(u32 cpufreq) {
|
||||
cpuFreq = cpufreq;
|
||||
CoreTiming::SetClockFrequencyMHz(cpufreq);
|
||||
DEBUG_LOG(HLE,"scePowerSetCpuClockFrequency(%i)", cpufreq);
|
||||
return 0;
|
||||
}
|
||||
@ -239,8 +238,9 @@ u32 scePowerSetBusClockFrequency(u32 busfreq) {
|
||||
}
|
||||
|
||||
u32 scePowerGetCpuClockFrequencyInt() {
|
||||
DEBUG_LOG(HLE,"%i=scePowerGetCpuClockFrequencyInt()", cpuFreq);
|
||||
return cpuFreq;
|
||||
int freq = CoreTiming::GetClockFrequencyMHz();
|
||||
DEBUG_LOG(HLE,"%i=scePowerGetCpuClockFrequencyInt()", freq);
|
||||
return freq;
|
||||
}
|
||||
|
||||
u32 scePowerGetPllClockFrequencyInt() {
|
||||
|
Loading…
Reference in New Issue
Block a user