Last active
June 21, 2019 11:39
-
-
Save cyring/34808eea247ed0bcaf3d01dd2ecea7cc to your computer and use it in GitHub Desktop.
SandyBridge/EP and IvyBridge/EP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PKG_Counters_SandyBridge_EP(Core, T) \ | |
({ \ | |
RDTSCP_COUNTERx5(Proc->Counter[T].PTSC, \ | |
MSR_PKG_C2_RESIDENCY, Proc->Counter[T].PC02, \ | |
MSR_PKG_C3_RESIDENCY, Proc->Counter[T].PC03, \ | |
MSR_PKG_C6_RESIDENCY, Proc->Counter[T].PC06, \ | |
MSR_PKG_C7_RESIDENCY, Proc->Counter[T].PC07, \ | |
MSR_SNB_EP_UNCORE_PERF_FIXED_CTR0, Proc->Counter[T].Uncore.FC0);\ | |
}) |
Idle & Frequency sub-driver
https://github.com/cyring/CoreFreq/blob/f2b5be0ebaa51c6608c1cd2e1367f96043532341/corefreqk.h#L3394
.SystemDriver = &IVB_Driver,
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Package C-States fix
https://github.com/cyring/CoreFreq/blob/f2b5be0ebaa51c6608c1cd2e1367f96043532341/corefreqk.c#L6655
https://github.com/cyring/CoreFreq/blob/f2b5be0ebaa51c6608c1cd2e1367f96043532341/corefreqk.c#L6757