mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
P-core tweaks
This commit is contained in:
@@ -696,7 +696,12 @@ public class AsusACPI
|
|||||||
|
|
||||||
public void SetCores(int eCores, int pCores)
|
public void SetCores(int eCores, int pCores)
|
||||||
{
|
{
|
||||||
if (eCores < ECoreMin || eCores > ECoreMax || pCores < PCoreMin || pCores > PCoreMax) return;
|
if (eCores < ECoreMin || eCores > ECoreMax || pCores < PCoreMin || pCores > PCoreMax)
|
||||||
|
{
|
||||||
|
Logger.WriteLine($"Incorrect Core config ({eCores}, {pCores})");
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
|
||||||
int value = (eCores << 8) | pCores;
|
int value = (eCores << 8) | pCores;
|
||||||
Program.acpi.DeviceSet(CORES_CPU, value, "Cores (0x" + value.ToString("X4") + ")");
|
Program.acpi.DeviceSet(CORES_CPU, value, "Cores (0x" + value.ToString("X4") + ")");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user