Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1686158lqa; Mon, 29 Apr 2024 16:36:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBzHes9fX8MqFj7muDpcjDyroGfvwfwgCKcCJaYESRJUHxtCzSRVcENcIRDs0fqeZXajlztEQFny+hVIURz98zqU3+YXE4YTorpM4yGw== X-Google-Smtp-Source: AGHT+IGmT3rxp9auIFKUJq3YlenMW/z9ZiuNv027FHrtrFaIdX71yB4mGivloRt/DHHDlTpeLzxX X-Received: by 2002:ac2:4984:0:b0:51c:847f:5e70 with SMTP id f4-20020ac24984000000b0051c847f5e70mr6713804lfl.37.1714433761592; Mon, 29 Apr 2024 16:36:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714433761; cv=pass; d=google.com; s=arc-20160816; b=OPlS1Xws7fg0dYXeKevmcI+hAMYAc9MR6T4ITxgzSKjoYLyMKaUGsYWoU2+3WdbnMA Y5poeVl2yxUP7TN7HaDDe84960xWdZALfDWCIMa9O5wHZcURZuu2qTlju3Zb+AdAIzNu LP8iDRlZ8Ezy+nCkgpLt02h9HWbPpjUDHkedD/R1GhsMzJm4hFvDmPxmeECKm1AsVll8 D4dHEt7SaN1MOtxZ4vFD1CG27U9ACPlva3ToNSri5c/CwGjWTWddgX++mBzsBCWqQ5VX jks5c1vVkDOudkchu3zxHcF/L40AN0kdpEwrijEok94YrGewM6A8+9cQeyQw0kp5CNWp 1y2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=o/EEf0E0/a7SJklHZq5eD8OdDcHCRMgXSWp1prHjUn8=; fh=mEh49SO2KtXzumLNTjzGK/xQv/Qr74JYyqrrI9PFq8E=; b=r1t1upkASZVgLB+FF2NNJaASH2vDMVdsjPhgFiN5AXgMFzVfRp+Scml0bAqU/gX//s Xy3fB7BinOlr32REajJNp/DjIFHiLQvwgOJ+jp3RMJTH6c/mudc5lF5XBG3kXD4XDkjB b6PjImiGj3O4Rymi5vv6ltBgaR5Soqq5G48rTSVRIRXd5cVpAbrU/GDXtG+Ty2YT//S1 i66FFtJT/g+VmfPPJpXN89P2YVwlO8tPtxD5eYbnT9M48tDGs+mJVG5TRyhCyX+YM/oK 389ZLXCYnCEVlReC9KAJyaM94hFPXUmqhIi86Au9/HCI3wgKq485ASVEkA0hUGs8tA9m pTqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eoRklByC; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-163149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hp15-20020a1709073e0f00b00a55b38ce6f0si11151186ejc.639.2024.04.29.16.36.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 16:36:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eoRklByC; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-163149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 512AF1F22A08 for ; Mon, 29 Apr 2024 23:36:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 788C919DF51; Mon, 29 Apr 2024 23:35:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eoRklByC" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F283194C7D; Mon, 29 Apr 2024 23:35:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714433713; cv=none; b=p53/ll7TPFM6PLFukebTTr+i/ugdez0nEDGiGBBHRqv43AtdJB90LiAysobzUQJ0mKWxZy2j366PqQuY92y9OKW+5lb5CtqOTmB/tDH9dS3HY2jXLJS+SQTIumucQYgDMOsWGgL2CdiNmLl+33xlYzMPKOyH74ZYv0jYzjw0i2M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714433713; c=relaxed/simple; bh=TFPGY+ddCwHX9312u/U1NxmZ4OYD0jX/msGOy3fTFSg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=POf/5nFv7hmmJDOZEPBWCrFIdF4D/XPMJKmHe9nAFPeeqvLi1QRmAXkjueEfVZtBinAFaeQ3O65BEO3PXkd+PAJH5JATpdCYHW4+5Mg/B5XoLeG02RND9jNGgqHI6rKuw/3cO+EW2nkaDTcQwklfnKCIH5FulNWcUVdQpLX9A3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eoRklByC; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714433712; x=1745969712; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=TFPGY+ddCwHX9312u/U1NxmZ4OYD0jX/msGOy3fTFSg=; b=eoRklByCbkvEiQtVJZ+oM69QGLxAuGue8yX6c9/gr1zD/MVtCdjBy2ZQ Clt1p50ozBxw3YWtYKTVTzrUITp2bmpA9WJhLreBqd30rY1kQxL5ihCd3 xKrmM2+vzFYNfBkd5kwAuL8lVhY0fqjy83l0wr3HrwxSdmw23gK7Pq4fO aJjRxUcTCx2/5UaFk50MbIUHHny+luREJ0dy5o8H8YIhYRnhk87TAi7Tx 1ufIU5E/WkCcO0Atpr4/Q4Cv6OitYMqVrWer743VQCScdljOFWq1LCa36 M3GFEhn2ZeYvg8yIpqFR84T95CKJNeWati8VQ0gfzQXo3Qrz92Laa+gCn Q==; X-CSE-ConnectionGUID: 2rFRirq0RrGCDx+Kh74OkA== X-CSE-MsgGUID: RQRFEapTSTC2VybheHH/vQ== X-IronPort-AV: E=McAfee;i="6600,9927,11059"; a="10274508" X-IronPort-AV: E=Sophos;i="6.07,240,1708416000"; d="scan'208";a="10274508" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 16:35:09 -0700 X-CSE-ConnectionGUID: WTn4LFf8QsGgfhCNtU+5xg== X-CSE-MsgGUID: BhAfoo7wQNiKotgFHFswdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,240,1708416000"; d="scan'208";a="26200133" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by fmviesa009.fm.intel.com with ESMTP; 29 Apr 2024 16:35:08 -0700 From: Ricardo Neri To: "Rafael J. Wysocki" Cc: Zhang Rui , Srinivas Pandruvada , Len Brown , Stanislaw Gruszka , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Neri Subject: [PATCH 1/4] thermal: intel: hfi: Rename HFI_UPDATE_INTERVAL Date: Mon, 29 Apr 2024 16:41:49 -0700 Message-Id: <20240429234152.16230-2-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240429234152.16230-1-ricardo.neri-calderon@linux.intel.com> References: <20240429234152.16230-1-ricardo.neri-calderon@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The name of the constant HFI_UPDATE_INTERVAL is misleading. It is not a periodic interval at which HFI updates are processed. It is the delay in the processing of an HFI update after the arrival of an HFI interrupt. Signed-off-by: Ricardo Neri --- Cc: Len Brown Cc: Srinivas Pandruvada Cc: Stanislaw Gruszka Cc: Zhang Rui Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/thermal/intel/intel_hfi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/intel/intel_hfi.c b/drivers/thermal/intel/intel_hfi.c index fbc7f0cd83d7..e2b82d71ab6b 100644 --- a/drivers/thermal/intel/intel_hfi.c +++ b/drivers/thermal/intel/intel_hfi.c @@ -166,7 +166,7 @@ static struct hfi_features hfi_features; static DEFINE_MUTEX(hfi_instance_lock); static struct workqueue_struct *hfi_updates_wq; -#define HFI_UPDATE_INTERVAL HZ +#define HFI_UPDATE_DELAY HZ #define HFI_MAX_THERM_NOTIFY_COUNT 16 static void get_hfi_caps(struct hfi_instance *hfi_instance, @@ -322,7 +322,7 @@ void intel_hfi_process_event(__u64 pkg_therm_status_msr_val) raw_spin_unlock(&hfi_instance->event_lock); queue_delayed_work(hfi_updates_wq, &hfi_instance->update_work, - HFI_UPDATE_INTERVAL); + HFI_UPDATE_DELAY); } static void init_hfi_cpu_index(struct hfi_cpu_info *info) -- 2.34.1