1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef DPTF_CPU_PASSIVE
4 #define DPTF_CPU_PASSIVE 80
7 #ifndef DPTF_CPU_CRITICAL
8 #define DPTF_CPU_CRITICAL 90
11 External (\_SB.CP00._PSS, PkgObj)
12 External (\_SB.MPDL, IntObj)
16 Name(_ADR, 0x00040000) /* Bus 0, Device 4, Function 0 */
28 * Processor Performance Control
40 /* Notify OS to re-read _PPC limit on each CPU */
46 If (CondRefOf (\_SB.CP00._PSS)) {
47 Return (\_SB.CP00._PSS)
51 Package () { 0, 0, 0, 0, 0, 0 }
59 /* Check for mainboard specific _PDL override */
60 If (CondRefOf (\_SB.MPDL)) {
62 } ElseIf (CondRefOf (\_SB.CP00._PSS)) {
63 Local0 = SizeOf (\_SB.CP00._PSS)
71 /* Return PPCC table defined by mainboard */
77 #ifdef DPTF_CPU_CRITICAL
80 Return (\_SB.DPTF.CTOK (DPTF_CPU_CRITICAL))
84 #ifdef DPTF_CPU_PASSIVE
87 Return (\_SB.DPTF.CTOK (DPTF_CPU_PASSIVE))
91 #ifdef DPTF_CPU_ACTIVE_AC0
94 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC0))
98 #ifdef DPTF_CPU_ACTIVE_AC1
101 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC1))
105 #ifdef DPTF_CPU_ACTIVE_AC2
108 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC2))
112 #ifdef DPTF_CPU_ACTIVE_AC3
115 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC3))
119 #ifdef DPTF_CPU_ACTIVE_AC4
122 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC4))