From patchwork Fri Dec 8 13:48:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 175808 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5465586vqy; Fri, 8 Dec 2023 05:49:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4Tfb7ghzfuuhvsfkEEliiOGsu+wTVkevOUQws2PJUuC/mElD0VqayXohx/2uQbcc5zyQv X-Received: by 2002:a05:6a20:3942:b0:18f:d416:55fd with SMTP id r2-20020a056a20394200b0018fd41655fdmr41976pzg.100.1702043350372; Fri, 08 Dec 2023 05:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702043350; cv=none; d=google.com; s=arc-20160816; b=vdXwfaf/PJTebmW9Rz7gWCXhiWmr1ApZhT2TBOog00SR+UcNAj+SUEuhFY7CWNUeWH FRaqQHAMI4SxbZo9+LLC+75FSPk9XIEd90xRm12xKaC+v61vukowZKmMHNzDzteV0Zvo Fhzf0IImmWsMnLCtqBCwWHu+Zmau44KgMaH1XHAYiG4E8qNNrmZGlFBNLc3ZQKXVSpg9 uNEzDWZcpmMmAeTxyKxZZFRUEi4eeBuO5thKkNel8WxNiX3IbEk2BcWP576iNe8GiCUQ CqIZ+0Y3Eludj145XrYCoqkaqoSNAgDEFZ3cqbYYp3cZJOjfvU1rUR4X/jKy+wGeQh0n mMvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tQ07+7twL+DUsuEKlo0i2kSfdkLfUiFQBXNBuSPmsrU=; fh=gMHJUsh6UyIiIYafgGOYAHSWfBcxM02qCx0T8UTBzWU=; b=e+Lgpg3G9gO/CYMtbCfX8fFbpAYkUUIJZJJwGjLIhN1l0GG6TBkpxtuomFdJ31QmP4 EYHl7eQ1mPQCg25i1ragaf2xHLU5dhk1h06xpPJWVjk14AadPVHuqpwPdaokKKyvLJCa YJyK8+yaPBLYgkViJyjCIYrVbfsp8fCPyb3+WopRy+WujCq+pHKwfH90ImfEBhgA8Lom WiUEj8FySx5aE35BhZ3+Cw4M75/5GM/K7NAy1Fd/kZw1XtL24LCYbIuzyHhsx2B138bl 7GZs5ESPAfplaAok3OF4YT3x/0GXIqQo5rrils5xbcAAjo+otUtW/11zvLI24duCNoxV JfqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="jjII/BUZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id o20-20020a635d54000000b005b3b8896199si1524136pgm.591.2023.12.08.05.49.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 05:49:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="jjII/BUZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5499B82CD60F; Fri, 8 Dec 2023 05:49:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573831AbjLHNs6 (ORCPT + 99 others); Fri, 8 Dec 2023 08:48:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573854AbjLHNsz (ORCPT ); Fri, 8 Dec 2023 08:48:55 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B244319A5; Fri, 8 Dec 2023 05:49:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702043341; x=1733579341; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=XNlRwVlmc+8hzsq40kB9DkDfrP9F0EEFpnBMErhT0CY=; b=jjII/BUZbzjZSeBHP/Wlg1pkrkOfnZvwwJQ8C5SrLVi0bIV7uKEjYH6W k4LlbJw37vSGrGKYTwU1pEjoTwU00/feQ8R5yI899srZ8Xp/i7bmsKNAL nT+uIZa9PjlpSMlTb1/yM3ng7adN3Z7WffwYIRXqNajWMVQsIW7XNTc0c bWzzeoYdoStkD/Xq2TduIvPV5RmYn40EhdqqMCxUEksBEXPBAJ/Iu8gBF B0cMHU3MbK4B/jh18zQrElMpFxS2piUnCaTL4XCVScCouTxbhX/JXmeah VBDlpGdjW3x9EJnzEC83f1k7WmCJkrEC2Plt0VaO6JV+D4D0pBoIakASc w==; X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="7732128" X-IronPort-AV: E=Sophos;i="6.04,261,1695711600"; d="scan'208";a="7732128" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 05:49:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,261,1695711600"; d="scan'208";a="17460342" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.49.180]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 05:48:58 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Hans de Goede , platform-driver-x86@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 1/1] platform/x86: ips: Remove unused debug code Date: Fri, 8 Dec 2023 15:48:45 +0200 Message-Id: <20231208134845.3900-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 08 Dec 2023 05:49:07 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784721807846294756 X-GMAIL-MSGID: 1784721807846294756 Remove unused debug code inside #if 0 ... #endif. Signed-off-by: Ilpo Järvinen --- drivers/platform/x86/intel_ips.c | 33 -------------------------------- 1 file changed, 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