intel_cstates: Rename to x86_cstates.

It works just fine on modern AMD CPUs, too.
This commit is contained in:
Augustin Cavalier 2024-10-17 13:55:33 -04:00
parent 9c0dced16e
commit 724227e017
6 changed files with 15 additions and 15 deletions

View File

@ -105,7 +105,7 @@ AddFilesToPackage add-ons kernel power cpufreq :
intel_pstates@x86,x86_64
;
AddFilesToPackage add-ons kernel power cpuidle :
intel_cstates@x86,x86_64
x86_cstates@x86,x86_64
;
if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {

View File

@ -67,7 +67,7 @@ AddFilesToPackage add-ons kernel power cpufreq :
intel_pstates@x86,x86_64
;
AddFilesToPackage add-ons kernel power cpuidle :
intel_cstates@x86,x86_64
x86_cstates@x86,x86_64
;
if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {

View File

@ -1,4 +1,4 @@
SubDir HAIKU_TOP src add-ons kernel power cpuidle ;
SubInclude HAIKU_TOP src add-ons kernel power cpuidle intel_cstates ;
SubInclude HAIKU_TOP src add-ons kernel power cpuidle x86_cstates ;

View File

@ -1,8 +0,0 @@
SubDir HAIKU_TOP src add-ons kernel power cpuidle intel_cstates ;
UsePrivateKernelHeaders ;
KernelAddon intel_cstates :
intel_cstates.cpp
;

View File

@ -0,0 +1,8 @@
SubDir HAIKU_TOP src add-ons kernel power cpuidle x86_cstates ;
UsePrivateKernelHeaders ;
KernelAddon x86_cstates :
x86_cstates.cpp
;

View File

@ -25,7 +25,7 @@
#define MWAIT_INTERRUPTS_BREAK (1 << 0)
#define INTEL_CSTATES_MODULE_NAME CPUIDLE_MODULES_PREFIX "/intel_cstates/v1"
#define X86_CSTATES_MODULE_NAME CPUIDLE_MODULES_PREFIX "/x86_cstates/v1"
#define BASE_TIME_STEP 500
@ -201,9 +201,9 @@ std_ops(int32 op, ...)
}
static cpuidle_module_info sIntelCStates = {
static cpuidle_module_info sX86CStates = {
{
INTEL_CSTATES_MODULE_NAME,
X86_CSTATES_MODULE_NAME,
0,
std_ops,
},
@ -218,7 +218,7 @@ static cpuidle_module_info sIntelCStates = {
module_info* modules[] = {
(module_info*)&sIntelCStates,
(module_info*)&sX86CStates,
NULL
};