2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 The Chromium OS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
25 // Thermal zone polling frequency: 10 seconds
28 // Thermal sampling period for passive cooling: 10 seconds
31 // Convert from Degrees C to 1/10 Kelvin for ACPI
35 Multiply (Arg0, 10, Local0)
38 Add (Local0, 2732, Local0)
43 // Threshold for OS to shutdown
44 Method (_CRT, 0, Serialized)
49 // Threshold for passive cooling
50 Method (_PSV, 0, Serialized)
55 // Processors used for passive cooling
56 Method (_PSL, 0, Serialized)
61 Method (_TMP, 0, Serialized)
63 // Returns Higher of the two readings for CPU & VGA Temperature
64 If (LGreater (\_SB.PCI0.LPCB.EC0.TMP2, \_SB.PCI0.LPCB.EC0.TMP1))
66 // CPU high temperature
67 Store (\_SB.PCI0.LPCB.EC0.TMP2, Local0)
71 // VGA high temperature
72 Store (\_SB.PCI0.LPCB.EC0.TMP1, Local0)
75 // If temp less 35 or great then 115, set default 35
76 If (Or (LLess (Local0, 35), LGreater (Local0, 115)))
81 Return (CTOK (Local0))