Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7145501ybp; Wed, 16 Oct 2019 04:34:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEPOWD9ywDLiiH94POwURQl6TYpsHAt4VQsC76mxPM/6k9/7/e2AVvacnn8JS2q4SzUkW4 X-Received: by 2002:aa7:c6cf:: with SMTP id b15mr38305594eds.215.1571225698531; Wed, 16 Oct 2019 04:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571225698; cv=none; d=google.com; s=arc-20160816; b=UoQmdh/Lii7mbUxUx9+AINVOP18kVQyANCuJ1ZLJyoL8gpoB9HZrJ7t4WSn6mql0D1 K1/MZAiv34icd1kRLvunnwExTkkG+nqvz6pjMhESC50pp3fcJQ2zcgObrAsjVrBkxGOD u4/FdffqLos6XPNkzlxCybfdn8yCsvpRnMMu9Rmp4p8/wmneRZfKghg8QgxLq9i4FjCD biBc6S0VYaY/WbYmrm/ykaWjnk21ERUbM2e0uH2j5pe5xUtNMhL6+TCbc52uahAvM96F 9/Yj23shQU4fFu6Vuo8+sK/5GeZ475mILGyio8ofk6iwTQL8Ntv1e7EIu4+hHq5JyjFk GhwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:cc:to:from :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=FkcYsvQW9DCuO8FIIta+BX8R8j3WmMX3n+DnEou1u9g=; b=YhRzjmq9pMTde70uVcynb4zzm+aOw2zjvRhaID0N6NjXcfz71iBMoE3VgyfdC7+L0R 09ZzlfLEGXyETPokc4JXPTk378s2dj2fn9K/5fGKOLfuxN1Cx95nl0Ps1ILBta2fmZpT 4PA7SqIe7z48EuPgIt8saxQXvtxoH0V3rPXMhKiUI/f9vHv3mQCaDRHrE4fTdj1oVC/D aYRnhxXju6WIvygDYfmErIR19pf+nX6OtieqdJPXhVHCVROCBhkaHgWKpX7ZQe+mIY+R n46tOrX47PGG0POJLHvEwijIz7eZdU+NAWnWu1LGdjRM+Th4LLAQn1KoLfvQOsHUGslS GYnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NoX42E5t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id si30si15544033ejb.92.2019.10.16.04.34.35; Wed, 16 Oct 2019 04:34:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NoX42E5t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390383AbfJPE5d (ORCPT + 99 others); Wed, 16 Oct 2019 00:57:33 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39309 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389406AbfJPE5d (ORCPT ); Wed, 16 Oct 2019 00:57:33 -0400 Received: by mail-pg1-f195.google.com with SMTP id p12so4183553pgn.6 for ; Tue, 15 Oct 2019 21:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:from:to:cc:subject:user-agent:date; bh=FkcYsvQW9DCuO8FIIta+BX8R8j3WmMX3n+DnEou1u9g=; b=NoX42E5tQHVBX2OTb84UT4yoQagDGL6lXFej+SixelM0Ct41ZVJI1RMIC/j+1lUZNa lnxJvH2oF61wdUQigS9UL5pQrhOOINYGTmxZzVz9TYtn4wiFPvzBmWfkitgiOMtFwrd7 z5NVofZHgl4NFe3uoZOyIcfHbz8IO2dAjIT6E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:from:to:cc:subject :user-agent:date; bh=FkcYsvQW9DCuO8FIIta+BX8R8j3WmMX3n+DnEou1u9g=; b=rFNQzpisvywbPa4j6qjSiVYFSqb3+HJxlBH7FSRRfB/d7czeaPedPCXpUtoFij1G+V BhSeLA4Qnj/JXkf8RHVe88Q7BGuasJ3b6pG2iZb8hwCZmp8686R5+coqeDJyzGBA8zpM qYB5TBvdV1bInCzu9xaBhlkP/z5tYRrhTalshSKB1XnE+0h26z40Ahi69Du5lAnGBgvq V4BBWvDH4uikAGO6CEBDe8O9ow03o2mKcgJj65PgAe6JjAzozkyobKiu8NDqvolF09Fx vFUGBH06/9/cAzJHBJ1bFcC57tX6wpSeIy0ryEdLmATp6vv6shZipKNfniZcrc9kYo5E K81g== X-Gm-Message-State: APjAAAWOGJceT5ffwvwuQTxvT+jqnTzSgq/FyYK6JiTydD+Zk/kP3YUi UIgc9AxyiCwcjufVDeHIvlcagw== X-Received: by 2002:a63:6a03:: with SMTP id f3mr1856640pgc.167.1571201852446; Tue, 15 Oct 2019 21:57:32 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id k23sm25002741pgi.49.2019.10.15.21.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 21:57:31 -0700 (PDT) Message-ID: <5da6a33b.1c69fb81.64cc.6834@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1b53ef537203e629328285b4597a09e4a586d688.1571181041.git.amit.kucheria@linaro.org> References: <1b53ef537203e629328285b4597a09e4a586d688.1571181041.git.amit.kucheria@linaro.org> From: Stephen Boyd To: Amit Kucheria , Daniel Lezcano , Eduardo Valentin , Zhang Rui , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-pm@vger.kernel.org Subject: Re: [PATCH] of-thermal: Disable polling when interrupt property is found in DT User-Agent: alot/0.8.1 Date: Tue, 15 Oct 2019 21:57:30 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Amit Kucheria (2019-10-15 16:13:16) > Currently, in order to enable interrupt-only mode, one must set > polling-delay-passive and polling-delay properties in the DT to 0, > otherwise the thermal framework will continue to setup a periodic timers > to monitor the thermal zones. >=20 > Change the behaviour, so that on DT-based systems, we no longer have to > set the properties to zero if we find an 'interrupt' property in the > sensor. >=20 > Following data shows the number of times > thermal_zone_device_set_polling() is invoked with and without this > patch. So the patch achieves the same behaviour as setting the delay > properties to 0. >=20 > Current behaviour (without setting delay properties to 0): > FUNC COUNT > thermal_zone_device_update 302 > thermal_zone_device_set_pollin 7911 thermal_zone_device_set_polling? >=20 > Current behaviour (with delay properties set to 0): > FUNC COUNT > thermal_zone_device_update 3 > thermal_zone_device_set_pollin 6 >=20 > With this patch (without setting delay properties to 0): > FUNC COUNT > thermal_zone_device_update 3 > thermal_zone_device_set_pollin 6 >=20 > Suggested-by: Stephen Boyd > Signed-off-by: Amit Kucheria > --- Reviewed-by: Stephen Boyd