2021-05-26 19:09:36 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _ASM_X86_THERMAL_H
|
|
|
|
#define _ASM_X86_THERMAL_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_X86_THERMAL_VECTOR
|
2021-06-16 13:00:42 +00:00
|
|
|
void therm_lvt_init(void);
|
2021-05-26 19:09:36 +00:00
|
|
|
void intel_init_thermal(struct cpuinfo_x86 *c);
|
|
|
|
bool x86_thermal_enabled(void);
|
|
|
|
void intel_thermal_interrupt(void);
|
|
|
|
#else
|
2021-06-16 13:00:42 +00:00
|
|
|
static inline void therm_lvt_init(void) { }
|
|
|
|
static inline void intel_init_thermal(struct cpuinfo_x86 *c) { }
|
2021-05-26 19:09:36 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _ASM_X86_THERMAL_H */
|