• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3// Thermal Zone
4
5External (\PPKG, MethodObj)
6
7Scope (\_TZ)
8{
9	ThermalZone (THRM)
10	{
11		Name (_TC1, 0x02)
12		Name (_TC2, 0x03)
13
14		// Thermal zone polling frequency: 10 seconds
15		Name (_TZP, 100)
16
17		// Thermal sampling period for passive cooling: 10 seconds
18		Name (_TSP, 100)
19
20		// Convert from Degrees C to 1/10 Kelvin for ACPI
21		Method (CTOK, 1)
22		{
23			// 10th of Degrees C
24			Local0 = Arg0 * 10
25
26			// Convert to Kelvin
27			Local0 += 2732
28
29			Return (Local0)
30		}
31
32		// Threshold for OS to shutdown
33		Method (_CRT, 0, Serialized)
34		{
35			Return (CTOK (\TCRT))
36		}
37
38		// Threshold for passive cooling
39		Method (_PSV, 0, Serialized)
40		{
41			Return (CTOK (\TPSV))
42		}
43
44		// Processors used for passive cooling
45		Method (_PSL, 0, Serialized)
46		{
47			Return (\PPKG ())
48		}
49	}
50}
51