Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2963508imw; Sun, 17 Jul 2022 22:11:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uFMgWPV6D7Xajvz9foz5OYRM/TUJjrMV5wfwTaNY3EzSJoJd2fnhGFNyoCtHSdLBFDON97 X-Received: by 2002:a17:90b:1d02:b0:1f0:1c2c:cc64 with SMTP id on2-20020a17090b1d0200b001f01c2ccc64mr30738031pjb.52.1658121079014; Sun, 17 Jul 2022 22:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658121079; cv=none; d=google.com; s=arc-20160816; b=SuiHcN6l44njSpj9UQHKMHi225niS1sDWJ3mzNqwNOp+VpJc1ts/A3o1fNmnG6CZ5J lQUlPJy2IxAEWCv9UTrVRG5WJmqUkK1D5cVRfxN3HqssR56XREROw/hNVpLciDxu+oe/ ox5JJ7v/Wf3fj8DIV1Ag6dWxVgTaCPyIrycxVka6Qw0yAFMVPTBhlANiGU4AiX6wnbfg S7+8xfqm036tYnuDMren7s+XHDdLq6OGQOGyueRjgLEqUC5TilenklTElMl6McMUZIFu OFD8YbGhiP/CHAHX4KIWBKoKCnkdIg2UDrFC91webz8534zmfOBZ3SVlxhIP2q0xOYND etIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=qeKJcinBB3mkIces9jI+jR3eKChoBKBK4dt6bT09gf4=; b=Kjfwg7yg+j8OKvA/rtgWG/7DuN20a6JTgFhKjBzWRV3+oaDZ5V4LVhIdevZbCnfk0S 36nYber8ewz6cKHcwv6z/5++sRzNi0NX4ZZXR0AEpPLLlEMYVcX/jwra7bxD4HRicKmV XOtaMZomnHZC/2q+hlhlFIQMMZrnwZzEMfm6NSuGQIcrYdr0bIdxiO57CEjQ1S9wrjPi 5fQIRfWvzS1VgZiqybm0IEbQhYGK3eC6aU9cLh1l1XmytOwb3K0ezSYtA38xmHliMUox wXZ2mOFVxPnCgPbjnhXprh79KHSM/LlBQCamMbS+xs6pcxUagHeeSlUQEJQxpYlSsbUW aEyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XlIL2k8i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 11-20020a630c4b000000b0041971bd6192si13157668pgm.106.2022.07.17.22.11.05; Sun, 17 Jul 2022 22:11:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XlIL2k8i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232539AbiGRE7R (ORCPT + 99 others); Mon, 18 Jul 2022 00:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233269AbiGRE7I (ORCPT ); Mon, 18 Jul 2022 00:59:08 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 264467645; Sun, 17 Jul 2022 21:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658120348; x=1689656348; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=qeKJcinBB3mkIces9jI+jR3eKChoBKBK4dt6bT09gf4=; b=XlIL2k8ijMYy+zm/aHLaPoVwQjL0xcILU1ornPHCTCnfXoYuSd3pBplG gpWZSLETRboauHWULjqlvlZMeITMOwACccaVJRESWbuiYA7yFPdcl4mLL FaFrqBe+9cxfs1E19yZ9+VYLgyE4iss+B7HDXQojvEs/T/dB4jn5AdCXj m6saSYEqiGIUlvGIwMs5JbDQx/XdFgBoGhlhorICP3ZQGzGsG7dzGz44x 3EdOc7L/dXpOFyfyWEcKos52mrIZIfkHF7pKVwUclJNjI4xGcrCbsJOtu 3iKzXvv07aw3AnWQyY2wdSHqQb/4O6zR96rmDTW0c6PerpsrTeDbkNhhb g==; X-IronPort-AV: E=McAfee;i="6400,9594,10411"; a="286870193" X-IronPort-AV: E=Sophos;i="5.92,280,1650956400"; d="scan'208";a="286870193" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2022 21:59:07 -0700 X-IronPort-AV: E=Sophos;i="5.92,280,1650956400"; d="scan'208";a="594336499" Received: from lananhtr-mobl3.ccr.corp.intel.com ([10.215.250.14]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2022 21:59:04 -0700 Message-ID: Subject: Re: [PATCH v3 2/4] thermal/core: Avoid calling ->get_trip_temp() unnecessarily From: Zhang Rui To: Daniel Lezcano , rafael@kernel.org Cc: quic_manafm@quicinc.com, amitk@kernel.org, lukasz.luba@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 18 Jul 2022 12:59:04 +0800 In-Reply-To: <20220715210911.714479-2-daniel.lezcano@linaro.org> References: <20220715210911.714479-1-daniel.lezcano@linaro.org> <20220715210911.714479-2-daniel.lezcano@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIyLTA3LTE1IGF0IDIzOjA5ICswMjAwLCBEYW5pZWwgTGV6Y2FubyB3cm90ZToK PiBBcyB0aGUgdHJpcCB0ZW1wZXJhdHVyZSBpcyBhbHJlYWR5IGF2YWlsYWJsZSB3aGVuIGNhbGxp bmcgdGhlCj4gZnVuY3Rpb24KPiBoYW5kbGVfY3JpdGljYWxfdHJpcHMoKSwgcGFzcyBpdCBhcyBh IHBhcmFtZXRlciBpbnN0ZWFkIG9mIGhhdmluZwo+IHRoaXMKPiBmdW5jdGlvbiBjYWxsaW5nIHRo ZSBvcHMgYWdhaW4gdG8gcmV0cmlldmUgdGhlIHNhbWUgZGF0YS4KPiAKPiBSZXZpZXdlZC1ieTog THVrYXN6IEx1YmEgPGx1a2Fzei5sdWJhQGFybS5jb20+Cj4gU2lnbmVkLW9mZi1ieTogRGFuaWVs IExlemNhbm8gPGRhbmllbC5sZXpjYW5vQGxpbmFyby5vcmc+Cj4gLS0tCj4gwqAgdjM6Cj4gwqDC oCAtIE1hc3NhZ2VkIHRoZSBwYXRjaCB0aXRsZSBhbmQgdGhlIGRlc2NyaXB0aW9uCj4gLS0tCj4g wqBkcml2ZXJzL3RoZXJtYWwvdGhlcm1hbF9jb3JlLmMgfCA4ICsrLS0tLS0tCj4gwqAxIGZpbGUg Y2hhbmdlZC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