Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp333540lqo; Wed, 8 May 2024 00:42:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfG6WWfpcgEKw4+C+R2NYcvsar9Gr8rS1huYvrMy+UsUrzTkSds9dbb04+Mu7DMNjf7eUsJg9Wn26uL2DIrauyUXRlpBQmYPhsJ+kOtQ== X-Google-Smtp-Source: AGHT+IEbt33jjsVQ9NqQ5rkoLqU8GI3acJmLmJDLav5WFu0x/ZJ0RMhsPrYC80DXtRebJ55EWtjE X-Received: by 2002:a17:906:1c48:b0:a59:bb20:9961 with SMTP id a640c23a62f3a-a59fb94d63fmr95706466b.20.1715154149599; Wed, 08 May 2024 00:42:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715154149; cv=pass; d=google.com; s=arc-20160816; b=JcEpx8EPMQhJZz6GbFeaWk79ptgJWyYRmmVzYjM1r3x1ofYTTf6ucHF6nxmp97QCd2 xlfEkH77Kbg3bS8EISekOG6bgesqxjtPEiJungfk42w7LL9hEq6Xc0HLQDxP9N3R4B+x CKF+GtJzwNZnIdl2LBiJvxTIR4nxDrn63dvc2XVtfeQAPc2ofnNUAXxgwGAGimipCxaw PzFhS9n4mqiEq0VmL3fhv2wd/om5octArVl83+7NuTP5olezny8g62GM+L4al4SyeQdA jQG8soeVGJY6wCH/3B6DuZvV2gK7MAQGJfn4efy2VgSn638h3v/uv2YmLo7cZIeCFd7E O3iw== 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=HIF1uYqICbbGX7AWXkgESM5WC0oUqYoTNm2MOGzg4z4=; fh=mEh49SO2KtXzumLNTjzGK/xQv/Qr74JYyqrrI9PFq8E=; b=jLYOiDfVnIOSuD4INjePQpAT+c62z4q7UmhOmLnVKbwVaPEy4Ey9A+oRYtMoEwc7ts RUqcab0qm3UTcb40XiVcjy2uGZvBFnSwQxpT78hedexQVzPBsM2M+BdxZ0vxOMpnRm0D 1xv5N+SO++A/XLDAhEh93NiTQfEUDAnBppI5ii8Wb8WhYQXuiS8a04MRDtEBn9oJYoFZ qxfuGvZt/+5JPiMZpdHDwTFkVe1lsXvqHvplRY1d51j4Kz4gKdP79fl00KqHlucXFXai 1cQEMQ/XfqA/51lQ3WYxpmdkRP6+EQNOfz1R4yoBJRqYE2yK5TdgeXZnyd/OPYljw4th 4WrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ekxUbIjD; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-172657-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172657-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 hr35-20020a1709073fa300b00a59efb828e1si1646299ejc.619.2024.05.08.00.42.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 00:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172657-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=ekxUbIjD; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-172657-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172657-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 3A8511F23CD3 for ; Wed, 8 May 2024 03:37:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CDF314AA8; Wed, 8 May 2024 03:37:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ekxUbIjD" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 124D31A2C12; Wed, 8 May 2024 03:37:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715139422; cv=none; b=DQvoyUkeAjcvCc40IspHx5OxTsppMpZM2aX6ySZRxYbbcJ1jHq1bydYeD94qK2Bw1grjq19QaUiWIzc5g4zHe3L1k+iwgOkDjQF+LnHO2UZtLRNBR2xlSDbh3RKppNnlQSYKttQ+vF5Uw7fdjeS9/Xey4DCFjdFw7+eFIUbvLKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715139422; c=relaxed/simple; bh=kR97mbQ0Rry62elnu9tL23JQRgk/0e+OWskQwenqFE0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=UVAOSJ8wyf7YjMwbu9/xLg2kCFxawTWL+mofK9CJJAMAQh9DuvZ53SyrplMAUSiyDv3G6Z39pBJt/tc2hC6xNy0Q0OGmu7lk+6gL0wuzDWj5XZ/SsM16+RqrLRpVdSMw4Wgxa+5pCg+zpsIQEUZ1SjhXu+C0+nNfJuIPCwOYDYw= 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=ekxUbIjD; arc=none smtp.client-ip=192.198.163.18 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=1715139421; x=1746675421; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=kR97mbQ0Rry62elnu9tL23JQRgk/0e+OWskQwenqFE0=; b=ekxUbIjDqebK5mQi5mQUZxcVWBryOtgnVe7Eba5+fTb6GGK8RG/JSkCN ozWG5wLJ2D80P73eISCZNWTal5Pv8xiomlEtGbvizwuKecaaHcwwDjTtu YzTWoBVuoiGGT4FTS5s+gcQU5QHnX6jpzwFaAA8+Kyc2z0lZzAVaN/X9K nw9ZLFVeA/GwJ9FGM1pOzCha4YXRkq9QwRqFPWUiRmjWTArH59okGQHmD dcl/HDzspttDHisAbb1DR9wFzp4T+rqbgMUqte1Fe9T7B6mdb/l6Mq6IJ pql1dLvjPMb4YIssL16ybBkJKcPUd/q8MHMdQvzdd5xKo0ZgYrc6dLp82 A==; X-CSE-ConnectionGUID: 8YH2gV0LSNSlbCSCmhWdQg== X-CSE-MsgGUID: Ozsttdn8TCahAvDjIZkS1g== X-IronPort-AV: E=McAfee;i="6600,9927,11066"; a="10820907" X-IronPort-AV: E=Sophos;i="6.08,144,1712646000"; d="scan'208";a="10820907" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 20:36:54 -0700 X-CSE-ConnectionGUID: sPr03TCfQ/mzWXbDwBqnoQ== X-CSE-MsgGUID: GsF2qpQeT8aoHHIVck2jwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,144,1712646000"; d="scan'208";a="33551924" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orviesa005.jf.intel.com with ESMTP; 07 May 2024 20:36:52 -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 v2 1/4] thermal: intel: hfi: Rename HFI_UPDATE_INTERVAL Date: Tue, 7 May 2024 20:43:49 -0700 Message-Id: <20240508034352.18414-2-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240508034352.18414-1-ricardo.neri-calderon@linux.intel.com> References: <20240508034352.18414-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. Acked-by: Zhang Rui 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 --- Changes since v1: * None --- 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