1 /* SPDX-License-Identifier: GPL-2.0-only */
5 External (\PPKG, MethodObj)
7 #define HAVE_THERMALZONE
10 // Convert from Degrees C to 1/10 Kelvin for ACPI
26 // Thermal zone polling frequency: 10 seconds
29 // Thermal sampling period for passive cooling: 2 seconds
32 // Threshold for OS to shutdown
33 Method (_CRT, 0, Serialized)
38 // Threshold for passive cooling
39 Method (_PSV, 0, Serialized)
44 // Processors used for passive cooling
45 Method (_PSL, 0, Serialized)
50 Method (_TMP, 0, NotSerialized) // _TMP: Temperature
52 Local0 = \_SB.PCI0.LPCB.EC0.CPUT
56 Printf ("-----> CPU Temperature (INVALID): %o", Local0)
60 Printf ("-----> CPU Temperature: %o", Local0)
62 Return (CTOK (Local0))
68 // Thermal zone polling frequency: 10 seconds
71 // Thermal sampling period for passive cooling: 2 seconds
74 // Threshold for OS to shutdown
75 Method (_CRT, 0, Serialized)
80 Method (_TMP, 0, NotSerialized) // _TMP: Temperature
82 Local0 = \_SB.PCI0.LPCB.EC0.LOCT
86 Printf ("-----> LOC Temperature (INVALID): %o", Local0)
90 Printf ("-----> LOC Temperature: %o", Local0)
92 Return (CTOK (Local0))
98 // Thermal zone polling frequency: 10 seconds
101 // Thermal sampling period for passive cooling: 2 seconds
104 // Threshold for OS to shutdown
105 Method (_CRT, 0, Serialized)
110 Method (_TMP, 0, NotSerialized) // _TMP: Temperature
112 Local0 = \_SB.PCI0.LPCB.EC0.OEMT
116 Printf ("-----> OEM Temperature (INVALID): %o", Local0)
120 Printf ("-----> OEM Temperature: %o", Local0)
122 Return (CTOK (Local0))