^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __ACPI_PROCESSOR_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __ACPI_PROCESSOR_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #include <linux/cpu.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #include <linux/cpufreq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <linux/pm_qos.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <linux/thermal.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <asm/acpi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define ACPI_PROCESSOR_CLASS "processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define ACPI_PROCESSOR_DEVICE_NAME "Processor"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define ACPI_PROCESSOR_DEVICE_HID "ACPI0007"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define ACPI_PROCESSOR_CONTAINER_HID "ACPI0010"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define ACPI_PROCESSOR_BUSY_METRIC 10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define ACPI_PROCESSOR_MAX_POWER 8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define ACPI_PROCESSOR_MAX_C2_LATENCY 100
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define ACPI_PROCESSOR_MAX_C3_LATENCY 1000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define ACPI_PROCESSOR_MAX_THROTTLING 16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define ACPI_PROCESSOR_MAX_THROTTLE 250 /* 25% */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define ACPI_PROCESSOR_MAX_DUTY_WIDTH 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define ACPI_PDC_REVISION_ID 0x1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define ACPI_PSD_REV0_REVISION 0 /* Support for _PSD as in ACPI 3.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define ACPI_PSD_REV0_ENTRIES 5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define ACPI_TSD_REV0_REVISION 0 /* Support for _PSD as in ACPI 3.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define ACPI_TSD_REV0_ENTRIES 5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) * Types of coordination defined in ACPI 3.0. Same macros can be used across
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) * P, C and T states
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define DOMAIN_COORD_TYPE_SW_ALL 0xfc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define DOMAIN_COORD_TYPE_SW_ANY 0xfd
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define DOMAIN_COORD_TYPE_HW_ALL 0xfe
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define ACPI_CSTATE_SYSTEMIO 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define ACPI_CSTATE_FFH 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define ACPI_CSTATE_HALT 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define ACPI_CSTATE_INTEGER 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define ACPI_CX_DESC_LEN 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) /* Power Management */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) struct acpi_processor_cx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) struct acpi_power_register {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) u8 descriptor;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) u16 length;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) u8 space_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) u8 bit_width;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) u8 bit_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) u8 access_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) u64 address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) } __packed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) struct acpi_processor_cx {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) u8 valid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) u8 type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) u32 address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) u8 entry_method;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) u8 index;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) u32 latency;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) u8 bm_sts_skip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) char desc[ACPI_CX_DESC_LEN];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) struct acpi_lpi_state {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) u32 min_residency;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) u32 wake_latency; /* worst case */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) u32 flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) u32 arch_flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) u32 res_cnt_freq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) u32 enable_parent_state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) u64 address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) u8 index;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) u8 entry_method;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) char desc[ACPI_CX_DESC_LEN];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) struct acpi_processor_power {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) int count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) union {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) struct acpi_lpi_state lpi_states[ACPI_PROCESSOR_MAX_POWER];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) int timer_broadcast_on_state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) /* Performance Management */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) struct acpi_psd_package {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) u64 num_entries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) u64 revision;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) u64 domain;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) u64 coord_type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) u64 num_processors;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) } __packed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) struct acpi_pct_register {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) u8 descriptor;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) u16 length;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) u8 space_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) u8 bit_width;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) u8 bit_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) u8 reserved;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) u64 address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) } __packed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) struct acpi_processor_px {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) u64 core_frequency; /* megahertz */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) u64 power; /* milliWatts */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) u64 transition_latency; /* microseconds */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) u64 bus_master_latency; /* microseconds */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) u64 control; /* control value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) u64 status; /* success indicator */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) struct acpi_processor_performance {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) unsigned int state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) unsigned int platform_limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) struct acpi_pct_register control_register;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) struct acpi_pct_register status_register;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) unsigned int state_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) struct acpi_processor_px *states;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) struct acpi_psd_package domain_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) cpumask_var_t shared_cpu_map;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) unsigned int shared_type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) /* Throttling Control */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) struct acpi_tsd_package {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) u64 num_entries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) u64 revision;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) u64 domain;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) u64 coord_type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) u64 num_processors;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) } __packed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) struct acpi_ptc_register {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) u8 descriptor;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) u16 length;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) u8 space_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) u8 bit_width;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) u8 bit_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) u8 reserved;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) u64 address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) } __packed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) struct acpi_processor_tx_tss {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) u64 freqpercentage; /* */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) u64 power; /* milliWatts */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) u64 transition_latency; /* microseconds */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) u64 control; /* control value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) u64 status; /* success indicator */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) struct acpi_processor_tx {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) u16 power;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) u16 performance;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) struct acpi_processor;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) struct acpi_processor_throttling {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) unsigned int state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) unsigned int platform_limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) struct acpi_pct_register control_register;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) struct acpi_pct_register status_register;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) unsigned int state_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) struct acpi_processor_tx_tss *states_tss;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) struct acpi_tsd_package domain_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) cpumask_var_t shared_cpu_map;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) int (*acpi_processor_get_throttling) (struct acpi_processor * pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) int (*acpi_processor_set_throttling) (struct acpi_processor * pr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) int state, bool force);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) u32 address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) u8 duty_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) u8 duty_width;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) u8 tsd_valid_flag;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) unsigned int shared_type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) struct acpi_processor_tx states[ACPI_PROCESSOR_MAX_THROTTLING];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) /* Limit Interface */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) struct acpi_processor_lx {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) int px; /* performance state */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) int tx; /* throttle level */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) struct acpi_processor_limit {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) struct acpi_processor_lx state; /* current limit */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) struct acpi_processor_lx thermal; /* thermal limit */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) struct acpi_processor_lx user; /* user limit */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) struct acpi_processor_flags {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) u8 power:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) u8 performance:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) u8 throttling:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) u8 limit:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) u8 bm_control:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) u8 bm_check:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) u8 has_cst:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) u8 has_lpi:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) u8 power_setup_done:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) u8 bm_rld_set:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) u8 need_hotplug_init:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) struct acpi_processor {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) acpi_handle handle;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) u32 acpi_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) phys_cpuid_t phys_id; /* CPU hardware ID such as APIC ID for x86 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) u32 id; /* CPU logical ID allocated by OS */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) u32 pblk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) int performance_platform_limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) int throttling_platform_limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) /* 0 - states 0..n-th state available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) struct acpi_processor_flags flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) struct acpi_processor_power power;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) struct acpi_processor_performance *performance;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) struct acpi_processor_throttling throttling;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) struct acpi_processor_limit limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) struct thermal_cooling_device *cdev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) struct device *dev; /* Processor device. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) struct freq_qos_request perflib_req;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) struct freq_qos_request thermal_req;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) struct acpi_processor_errata {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) u8 smp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) u8 throttle:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) u8 fdma:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) u8 reserved:6;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) u32 bmisx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) } piix4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) extern int acpi_processor_preregister_performance(struct
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) acpi_processor_performance
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) __percpu *performance);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) extern int acpi_processor_register_performance(struct acpi_processor_performance
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) *performance, unsigned int cpu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) extern void acpi_processor_unregister_performance(unsigned int cpu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) int acpi_processor_pstate_control(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) /* note: this locks both the calling module and the processor module
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) if a _PPC object exists, rmmod is disallowed then */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) int acpi_processor_notify_smm(struct module *calling_module);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) int acpi_processor_get_psd(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) struct acpi_psd_package *pdomain);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) /* parsing the _P* objects. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) extern int acpi_processor_get_performance_info(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) /* for communication between multiple parts of the processor kernel module */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) DECLARE_PER_CPU(struct acpi_processor *, processors);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) extern struct acpi_processor_errata errata;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) #if defined(ARCH_HAS_POWER_INIT) && defined(CONFIG_ACPI_PROCESSOR_CSTATE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) unsigned int cpu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) int acpi_processor_ffh_cstate_probe(unsigned int cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) struct acpi_processor_cx *cx,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) struct acpi_power_register *reg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cstate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) static inline void acpi_processor_power_init_bm_check(struct
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) acpi_processor_flags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) *flags, unsigned int cpu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) flags->bm_check = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) static inline int acpi_processor_ffh_cstate_probe(unsigned int cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) struct acpi_processor_cx *cx,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) struct acpi_power_register
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) *reg)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) return -1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) static inline void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) *cstate)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) static inline int call_on_cpu(int cpu, long (*fn)(void *), void *arg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) bool direct)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) if (direct || (is_percpu_thread() && cpu == smp_processor_id()))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) return fn(arg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305) return work_on_cpu(cpu, fn, arg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) /* in processor_perflib.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) #ifdef CONFIG_CPU_FREQ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) extern bool acpi_processor_cpufreq_init;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) void acpi_processor_ignore_ppc_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) void acpi_processor_ppc_init(struct cpufreq_policy *policy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) void acpi_processor_ppc_exit(struct cpufreq_policy *policy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) void acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) extern int acpi_processor_get_bios_limit(int cpu, unsigned int *limit);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318) static inline void acpi_processor_ignore_ppc_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) static inline void acpi_processor_ppc_init(struct cpufreq_policy *policy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) static inline void acpi_processor_ppc_exit(struct cpufreq_policy *policy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330) static inline void acpi_processor_ppc_has_changed(struct acpi_processor *pr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) int event_flag)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) static unsigned int printout = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) if (printout) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) printk(KERN_WARNING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336) "Warning: Processor Platform Limit event detected, but not handled.\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) printk(KERN_WARNING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) "Consider compiling CPUfreq support into your kernel.\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) printout = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) static inline int acpi_processor_get_bios_limit(int cpu, unsigned int *limit)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) #endif /* CONFIG_CPU_FREQ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349) /* in processor_core.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) phys_cpuid_t acpi_get_phys_id(acpi_handle, int type, u32 acpi_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351) phys_cpuid_t acpi_map_madt_entry(u32 acpi_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352) int acpi_map_cpuid(phys_cpuid_t phys_id, u32 acpi_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) int acpi_get_cpuid(acpi_handle, int type, u32 acpi_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) #ifdef CONFIG_ACPI_CPPC_LIB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) extern int acpi_cppc_processor_probe(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) extern void acpi_cppc_processor_exit(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) static inline int acpi_cppc_processor_probe(struct acpi_processor *pr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) static inline void acpi_cppc_processor_exit(struct acpi_processor *pr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) #endif /* CONFIG_ACPI_CPPC_LIB */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) /* in processor_pdc.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) void acpi_processor_set_pdc(acpi_handle handle);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372) /* in processor_throttling.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) #ifdef CONFIG_ACPI_CPU_FREQ_PSS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) int acpi_processor_tstate_has_changed(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) int acpi_processor_get_throttling_info(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376) extern int acpi_processor_set_throttling(struct acpi_processor *pr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) int state, bool force);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379) * Reevaluate whether the T-state is invalid after one cpu is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380) * onlined/offlined. In such case the flags.throttling will be updated.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382) extern void acpi_processor_reevaluate_tstate(struct acpi_processor *pr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383) bool is_dead);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) extern const struct file_operations acpi_processor_throttling_fops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385) extern void acpi_processor_throttling_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387) static inline int acpi_processor_tstate_has_changed(struct acpi_processor *pr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392) static inline int acpi_processor_get_throttling_info(struct acpi_processor *pr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) static inline int acpi_processor_set_throttling(struct acpi_processor *pr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398) int state, bool force)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 399) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 400) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 401) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 402)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 403) static inline void acpi_processor_reevaluate_tstate(struct acpi_processor *pr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 404) bool is_dead) {}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 405)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 406) static inline void acpi_processor_throttling_init(void) {}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 407) #endif /* CONFIG_ACPI_CPU_FREQ_PSS */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 408)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 409) /* in processor_idle.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 410) extern struct cpuidle_driver acpi_idle_driver;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 411) #ifdef CONFIG_ACPI_PROCESSOR_IDLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 412) int acpi_processor_power_init(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 413) int acpi_processor_power_exit(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 414) int acpi_processor_power_state_has_changed(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 415) int acpi_processor_hotplug(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 416) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 417) static inline int acpi_processor_power_init(struct acpi_processor *pr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 418) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 419) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 420) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 421)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 422) static inline int acpi_processor_power_exit(struct acpi_processor *pr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 423) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 424) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 425) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 426)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 427) static inline int acpi_processor_power_state_has_changed(struct acpi_processor *pr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 428) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 429) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 430) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 431)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 432) static inline int acpi_processor_hotplug(struct acpi_processor *pr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 433) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 434) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 435) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 436) #endif /* CONFIG_ACPI_PROCESSOR_IDLE */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 437)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 438) /* in processor_thermal.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 439) int acpi_processor_get_limit_info(struct acpi_processor *pr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 440) extern const struct thermal_cooling_device_ops processor_cooling_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 441) #if defined(CONFIG_ACPI_CPU_FREQ_PSS) & defined(CONFIG_CPU_FREQ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 442) void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 443) void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 444) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 445) static inline void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 446) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 447) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 448) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 449) static inline void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 450) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 451) return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 452) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 453) #endif /* CONFIG_ACPI_CPU_FREQ_PSS */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 454)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 455) #endif