From patchwork Mon May 22 05:10:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 100263 Delivered-To: patch@linaro.org Received: by 10.182.142.97 with SMTP id rv1csp1240629obb; Sun, 21 May 2017 22:10:28 -0700 (PDT) X-Received: by 10.99.167.15 with SMTP id d15mr5745276pgf.228.1495429828121; Sun, 21 May 2017 22:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495429828; cv=none; d=google.com; s=arc-20160816; b=p6drT4tYgJUjBxosuDLBCcz5FZm/wnzE0CfwVdCs4mn0JiQXXRHxzmV6JhV0t8cCft Os8nk5R31U9vIdz8MSF+aE8NBKQcrFrDkdGLOmhvCHQz1p8axE7ZBPEGInUXTynOFDuz 9wWZChsxGPFlyehqCEsHSw01vOnAc+AHnWSf4cq95GtCY9y23ziQ7OyKVHKe8lTDnCay tYee2EVLKd/mGdDPSwubOBwWCB9S4HftWvXjvMaZghVDCN9xTmYfKPbztiq0UxeppVZo jNfpIUBPMRS6Ipz0BKyAMGEDJaiRVVA01vbQNWG2VXdafD7PoKgr4Qigey4VrJUT6eIL L4ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ZDfWcxa9colbDCgIFOki8Z8oR54Ms+cuH8ecdatD7iE=; b=WgH7qlB7s1Dn+X82/tltYOWdcXaqqPeGRfDNatTbq+CDntx5lpw6P1h/FGjscBWk0L fah2yJM9Bre6C/37airA+v43tYoRX7vPQP+Yt83K1z4aWx/OOUFFxnRAUknQAq8BzWzt BD0HP9vqi7K/RcV4r7ZlOJMxXnc12yqRwQIBwFTtb9pok+B74phUaYlLhfAX3MpyjS7l YCsWKD7tKqcR3BI9aS0SDX6i8nKvBJQ3JE65mX4grZoPcI12dDgNv7lVGqk38/yzQcRw 06f93lz/0MR94TElbv+dX5ESsdUvP2BmfUJwVJoZfiRiyYBQz3Du06LsQsQo02GdXnt1 Kufg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 m11si14345711pgc.389.2017.05.21.22.10.27; Sun, 21 May 2017 22:10:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1751722AbdEVFK0 (ORCPT + 14 others); Mon, 22 May 2017 01:10:26 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:34163 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbdEVFKZ (ORCPT ); Mon, 22 May 2017 01:10:25 -0400 Received: by mail-pf0-f170.google.com with SMTP id 9so70538521pfj.1 for ; Sun, 21 May 2017 22:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ZDfWcxa9colbDCgIFOki8Z8oR54Ms+cuH8ecdatD7iE=; b=dVyJEuplLPYj6AyrFm2SvsPDkIuvjgdTdhYvaUmt1TewcgtFKf27mf530WEjnHAil0 B+8Y77OVWBFwSuTuhv0z/qXpEh5ZW0+rdSFE+ej8W6LcQoBL/u3gRGJ/baDpXFmbqwzI bGjofydzCFNG17C+ZJj3f4WkvewYzy7yMNYyk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZDfWcxa9colbDCgIFOki8Z8oR54Ms+cuH8ecdatD7iE=; b=LijnZHovVzRgStLO8Vyi8XElMjEFC6llhwp5QKRHd/sXOJZR+nhktLwN6fVs3xrAVc taztVTkYv3a/XAucJY56uV2a3SrrsX8gEuHPsRmuj2ERYpvC5NdRB1fORKVa8eyqkCx+ O9RDMp51ApjSskGfGshsZdsXo96RmexHrJljGgek8IKFnpVD86zq76pQTdFW2hv9nC1S UNWoGrQ26vFl/DT/xGA2kjLHqzn9+ohEoOc/bQpJzCtKwyUJyEShKnTS0PVXgqdKfX1F bJ61EUI/rGK+f6CnDu/+2u12NS4MQIXbVRFbP+Ik0mzK48GXKLZOgE4oYBw/DDUFWu84 bDmw== X-Gm-Message-State: AODbwcAfz0lbFEdxMopNTml0VfE1i3EkgbyaT8GCpP9XCBPtloTmW6rj lsHYpI9ZDjADCmjW X-Received: by 10.98.149.154 with SMTP id c26mr23722115pfk.37.1495429824910; Sun, 21 May 2017 22:10:24 -0700 (PDT) Received: from localhost ([122.167.210.227]) by smtp.gmail.com with ESMTPSA id q24sm29195381pfj.3.2017.05.21.22.10.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 May 2017 22:10:23 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot Subject: [PATCH] cpufreq: dt: Set default policy->transition_delay_ns Date: Mon, 22 May 2017 10:40:14 +0530 Message-Id: <16157eb75bb26cca73a0da930e49f2549b96fd65.1495429745.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.13.0.70.g6367777092d9 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The rate_limit_us for the schedutil governor is getting set to 500 ms by default for the ARM64 hikey board. And its way too much, even for the default value. Lets set the default transition_delay_ns to something more realistic (10 ms), while the userspace always have a chance to set something it wants. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index c943787d761e..70eac3fd89ac 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -275,6 +275,9 @@ static int cpufreq_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = transition_latency; + /* Set the default transition delay to 10ms */ + policy->transition_delay_us = 10 * USEC_PER_MSEC; + return 0; out_free_cpufreq_table: