soc/intel/skylake: Avoid use of variable Local0 in TEVT in thermal.asl

Avoid use of Local0 variable in TEVT acpi method.
If mainboard doesn't expose any thermal sensor, then warning is
generated for variable Local0 not been used.

Change-Id: I0634961a01144e41a8480c8c6ed8b7fdd358e768
Signed-off-by: Naresh G Solanki <naresh.solanki@intel.com>
Reviewed-on: https://review.coreboot.org/17245
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Naresh G Solanki 2016-11-06 12:42:30 +05:30 committed by Martin Roth
parent 50bb67eea0
commit 8d353afe08
1 changed files with 4 additions and 5 deletions

View File

@ -17,25 +17,24 @@
/* Thermal Threshold Event Handler */ /* Thermal Threshold Event Handler */
Method (TEVT, 1, NotSerialized) Method (TEVT, 1, NotSerialized)
{ {
Store (ToInteger (Arg0), Local0)
#ifdef DPTF_TSR0_SENSOR_ID #ifdef DPTF_TSR0_SENSOR_ID
If (LEqual (Local0, DPTF_TSR0_SENSOR_ID)) { If (LEqual (ToInteger (Arg0), DPTF_TSR0_SENSOR_ID)) {
Notify (^TSR0, 0x90) Notify (^TSR0, 0x90)
} }
#endif #endif
#ifdef DPTF_TSR1_SENSOR_ID #ifdef DPTF_TSR1_SENSOR_ID
If (LEqual (Local0, DPTF_TSR1_SENSOR_ID)) { If (LEqual (ToInteger (Arg0), DPTF_TSR1_SENSOR_ID)) {
Notify (^TSR1, 0x90) Notify (^TSR1, 0x90)
} }
#endif #endif
#ifdef DPTF_TSR2_SENSOR_ID #ifdef DPTF_TSR2_SENSOR_ID
If (LEqual (Local0, DPTF_TSR2_SENSOR_ID)) { If (LEqual (ToInteger (Arg0), DPTF_TSR2_SENSOR_ID)) {
Notify (^TSR2, 0x90) Notify (^TSR2, 0x90)
} }
#endif #endif
#ifdef DPTF_TSR3_SENSOR_ID #ifdef DPTF_TSR3_SENSOR_ID
If (LEqual (Local0, DPTF_TSR3_SENSOR_ID)) { If (LEqual (ToInteger (Arg0), DPTF_TSR3_SENSOR_ID)) {
Notify (^TSR3, 0x90) Notify (^TSR3, 0x90)
} }
#endif #endif