diff options
| author | Ilpo Järvinen <[email protected]> | 2023-12-08 13:48:45 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-12-11 10:10:36 +0000 |
| commit | 682b43a049c898d060bb1bd7af4cac0d91b3594d (patch) | |
| tree | efa8ec87a21e9e1fa6acf63af38578e4acfec661 /drivers/platform/x86/intel_ips.c | |
| parent | platform/x86/intel-uncore-freq: Process read/write blocked feature status (diff) | |
| download | kernel-682b43a049c898d060bb1bd7af4cac0d91b3594d.tar.gz kernel-682b43a049c898d060bb1bd7af4cac0d91b3594d.zip | |
platform/x86: ips: Remove unused debug code
Remove unused debug code inside #if 0 ... #endif.
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel_ips.c')
| -rw-r--r-- | drivers/platform/x86/intel_ips.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index 4dfdbfca6841..e26e7e14c44c 100644 --- a/drivers/platform/x86/intel_ips.c +++ b/drivers/platform/x86/intel_ips.c @@ -1105,39 +1105,6 @@ static int ips_monitor(void *data) return 0; } -#if 0 -#define THM_DUMPW(reg) \ - { \ - u16 val = thm_readw(reg); \ - dev_dbg(ips->dev, #reg ": 0x%04x\n", val); \ - } -#define THM_DUMPL(reg) \ - { \ - u32 val = thm_readl(reg); \ - dev_dbg(ips->dev, #reg ": 0x%08x\n", val); \ - } -#define THM_DUMPQ(reg) \ - { \ - u64 val = thm_readq(reg); \ - dev_dbg(ips->dev, #reg ": 0x%016x\n", val); \ - } - -static void dump_thermal_info(struct ips_driver *ips) -{ - u16 ptl; - - ptl = thm_readw(THM_PTL); - dev_dbg(ips->dev, "Processor temp limit: %d\n", ptl); - - THM_DUMPW(THM_CTA); - THM_DUMPW(THM_TRC); - THM_DUMPW(THM_CTV1); - THM_DUMPL(THM_STS); - THM_DUMPW(THM_PTV); - THM_DUMPQ(THM_MGTV); -} -#endif - /** * ips_irq_handler - handle temperature triggers and other IPS events * @irq: irq number |
