mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 15:28:58 +01:00
intel_cstates: Rename to x86_cstates.
It works just fine on modern AMD CPUs, too.
This commit is contained in:
parent
9c0dced16e
commit
724227e017
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 ;
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel power cpuidle intel_cstates ;
|
||||
|
||||
UsePrivateKernelHeaders ;
|
||||
|
||||
KernelAddon intel_cstates :
|
||||
intel_cstates.cpp
|
||||
;
|
||||
|
8
src/add-ons/kernel/power/cpuidle/x86_cstates/Jamfile
Normal file
8
src/add-ons/kernel/power/cpuidle/x86_cstates/Jamfile
Normal file
@ -0,0 +1,8 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel power cpuidle x86_cstates ;
|
||||
|
||||
UsePrivateKernelHeaders ;
|
||||
|
||||
KernelAddon x86_cstates :
|
||||
x86_cstates.cpp
|
||||
;
|
||||
|
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user