Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7155032ybp; Wed, 16 Oct 2019 04:43:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTcLzBF9U76xYuHzLUCN2wqI8ls6eLFyQn/onr8yJbrHMVYfrlHFNGT242wo4zjYyPzf2K X-Received: by 2002:a17:906:519:: with SMTP id j25mr39065230eja.65.1571226231704; Wed, 16 Oct 2019 04:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571226231; cv=none; d=google.com; s=arc-20160816; b=p5dpaVbFUaVaA0hrjRMFHqw2xxaJxSUoJmCVKIHN86PTSCpvwipQurILZiMZhw4mGb 06CqZ7Jm/j7V9T7zdd+4JD1bFGrPzL4CzTXA03J8y4Fl+kCM9tTIgWfQeKW3oMUCG5Jj np5AGdzCmYIvpa6dQL3II2ABhuhet+0GJVYnGK5QeXOuAYGnERiDGBb/IFRyW0+bRN5C TQGpjoobTlFxCdSuKT2BOG8BNLAGF14wdEiaY1qsqMuHsW+sJTCjZJDvxoilT2diTK5Q OHyljRnhVOCIAdzR4B5B+EYpfdZLJnXAa09tf4jnXwKc63z/UERLnPYUSX2Xqr8i3SRJ +aZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=x84fnYes++VeBDbIo6qHMe1U6I3n9DWg2uJuSL1+ZRo=; b=iGXlTXhATzW0/jISDO1iA/dD+iccp2n4EB4WWoSf+JwTgQe36AbtOoyAmtdTwViGxl mrfjNMDItqautzf1Js+hcww32p1/lDiNrawWbQ+NL3LVPnq8WI3b/nTbuA3CXPqKH79U 9NMuZ33FqnuDym4eOVaTI6qONc0eWdaIT3vW4KDDJBWAiU786YQYGfJUEjik6rIft+PC y0TA+R31KGtKceaqcGZL0+VQsiwI6QctI0HWD7oRgYvguH7y+lBCa0+IQA5XhcR7AqvB PakKC45t2i4hDi1C0/nN1BSG36d++firO5rBpezZhVbOLWCAChg8Yq/SfXSIP8lZdFqK PjTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mVVE9XDy; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sb7si15274274ejb.321.2019.10.16.04.43.27; Wed, 16 Oct 2019 04:43:51 -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=@linaro.org header.s=google header.b=mVVE9XDy; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727904AbfJPFXB (ORCPT + 99 others); Wed, 16 Oct 2019 01:23:01 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:45143 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726052AbfJPFXB (ORCPT ); Wed, 16 Oct 2019 01:23:01 -0400 Received: by mail-ua1-f67.google.com with SMTP id j5so6802293uak.12 for ; Tue, 15 Oct 2019 22:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x84fnYes++VeBDbIo6qHMe1U6I3n9DWg2uJuSL1+ZRo=; b=mVVE9XDy13ZeRTLAxh6diSwqxs5+pFC+8NzUM1/Iufrxc92V1mff6IQ2f/lQ+SlJDn fwhahz8Fp0dOAM18EHJt+dW4hfdej+c/FrMv/bl+glt1rMaW7kwirXGR8+cTc4ngppJJ 0NxASLZI6vL0oVsWKPbq4MKeyJZDk3DgC4I9XmM70t2nlAeoWwG6l/1kFVWI8Kn9d62l WGBmEd8F40veGIoAv7Rm/nx//5XTO3cI/HK2xVtXcniixv1LkJXgu5BQwuXNoCqzFRFX pRgdKV4oNe/IMGQB/OMGwh1dwjKnPXrePkBBF7btoaRH20gL0zeB3Bj0MpSNFwumrv6s IDTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x84fnYes++VeBDbIo6qHMe1U6I3n9DWg2uJuSL1+ZRo=; b=ebnYFexDxxajZ6YxpCZA8ZcfskCV3/s9iYt2IFONFg/XLd97+N3aob9H6vQwE4oslF oLp7879Z9U8PPWG61SHtEW17y+3LLfnSW+azrCzB0NEtAOrRS+rGaLKBTU7K352DPWkK xeUTICoIcNwiKcP2k44XlhscRUDGRJUVTEUc6zza2blDKzF9dEB/qpUauZfQSNU+8dK0 jfV3VagzKsvF1mEDy9gqkZLnHj3c3lRVazXKX+CQz0I8iAkL/CGot/EjE7mhuMtaa/YX jEc6LK4xjllEUv/wl+Is3Km3VjGa5ER7j6oBzZjLltgqZO4sTQzU97krNQYAm7g0o+Ol pKvg== X-Gm-Message-State: APjAAAWL8ynli9Qjn2cuexl+kx2lm4ukH1lS3lHjAJVaIPU88tB7S1U2 act2rowL5IUitr+Q2SDqPJTbZFYlIY6vElQScu9G3g== X-Received: by 2002:a9f:364c:: with SMTP id s12mr15532433uad.77.1571203379780; Tue, 15 Oct 2019 22:22:59 -0700 (PDT) MIME-Version: 1.0 References: <1b53ef537203e629328285b4597a09e4a586d688.1571181041.git.amit.kucheria@linaro.org> <5da6a33b.1c69fb81.64cc.6834@mx.google.com> In-Reply-To: <5da6a33b.1c69fb81.64cc.6834@mx.google.com> From: Amit Kucheria Date: Wed, 16 Oct 2019 10:52:48 +0530 Message-ID: Subject: Re: [PATCH] of-thermal: Disable polling when interrupt property is found in DT To: Stephen Boyd Cc: Daniel Lezcano , Eduardo Valentin , Zhang Rui , linux-arm-msm , LKML , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 16, 2019 at 10:27 AM Stephen Boyd wrote: > > 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. > > > > 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. > > > > 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. > > > > 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? Yes, the script I was using restricted the width of the fn name while printing. > > > > > Current behaviour (with delay properties set to 0): > > FUNC COUNT > > thermal_zone_device_update 3 > > thermal_zone_device_set_pollin 6 > > > > With this patch (without setting delay properties to 0): > > FUNC COUNT > > thermal_zone_device_update 3 > > thermal_zone_device_set_pollin 6 > > > > Suggested-by: Stephen Boyd > > Signed-off-by: Amit Kucheria > > --- > > Reviewed-by: Stephen Boyd >