From patchwork Thu Jun 29 05:26:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 106605 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp704021qge; Wed, 28 Jun 2017 22:28:11 -0700 (PDT) X-Received: by 10.84.217.139 with SMTP id p11mr16016940pli.214.1498714090967; Wed, 28 Jun 2017 22:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498714090; cv=none; d=google.com; s=arc-20160816; b=tWrfeufmZ8QxfByg/PjTyd7zT71xR3OnE/rjsiEdEY3hPzHmt3JGxB0uAtRzTWpGEX T4xgN95NSjZmIQ2hfGxKd13JuXKH1XPpSffyjk0589GDY2+CKJkdw3aWeapRR1hQH2wN wPqjl9W0pAS3w0PuDim/QUmPBQENv3tMCW/M9VWxxlSeZG6WpOja4mwxs2h3Wuhhge8R Bc5JUmXBfxdijSXFEq5KvfLzIc6CQHSsOfuoL4jPZCCxPinp4mesYVJ8I+pvvJevsoUS Svay5KQxJf2oYr5AyVMdxFBXIkshH93sndMM3UzRNGnf0DqDlMWXPnh0aSsprXuuO5eH C/uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=R84SDfhnTe/nTsYHL/GHU6y2POz9jSy0VNvFAyqIu3A=; b=H4w5OV09RO21g/j5k86Vy/qe9OwoaJDlUxWsJFy1evLTUlhqu1BbMu6UqcIFazG2vJ WfbJVCYV4dQ12/FqRku/hraRegWlE3itXZ/tqmqLioWZ5Md/sBpVTGd+n96QYi9DM9bS QnmAv9C4AL/M/Rn/U3/bAExTk6Dtqg5Bg1V39uA273Z0irCfgcNAHTTpE2byihVXBPAL j/HeqEZweraIAIe/LsAW1uTRvpHa7qJKpv9iD7uWXGGxF3NpEKdBuuLVfOFtd3Hei6oY hgGPNuRXPGKihKcPxa8oo6pu8PigmQSM/DVnO6B2/jeay3khZ2AvndfbtgqOuSQqLefa T/0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=h0hf63EU; 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 l30si3223664plg.391.2017.06.28.22.28.10; Wed, 28 Jun 2017 22:28:10 -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 header.b=h0hf63EU; 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 S1751973AbdF2F2J (ORCPT + 14 others); Thu, 29 Jun 2017 01:28:09 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:34714 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbdF2F2D (ORCPT ); Thu, 29 Jun 2017 01:28:03 -0400 Received: by mail-pf0-f170.google.com with SMTP id s66so44500641pfs.1 for ; Wed, 28 Jun 2017 22:28:02 -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:in-reply-to:references :in-reply-to:references; bh=R84SDfhnTe/nTsYHL/GHU6y2POz9jSy0VNvFAyqIu3A=; b=h0hf63EUbzpYnB68hjr3bblkdclBjHZ15PIaCJ/gTZSaBu14vsTxK9ufpYQEt4pQtk SX/zGBTzrL8jzKOImEgGhSGYIogdJrt4/W9lnFzo6K71Ktn7KsYbOX70VHUNo+c07SvY 3Ty/4CECjTJgLOBPfO4Oga8LTllJUof82hpPg= 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:in-reply-to :references:in-reply-to:references; bh=R84SDfhnTe/nTsYHL/GHU6y2POz9jSy0VNvFAyqIu3A=; b=EFUj4oFlBLaxeu66TiFnWvps6MpLdnTnUVufmfpsqUciwY55v0WGvD9dreuQDEKXVJ a3luDeo+eNQYG99Ey24x2eY2jN2NZVawXCnEWgriXIr/h2BXB5i/hvPu28D7OBkK6iek diS1uUN8HdS1chNVnh450upxIBdrZcfHF1Rs2ZhU3EDpXN17Xc6GETUMUqVp37oba+Lr dBnSaA5/XuhTH4gGI+8PZfQyXOzphyYbXv4HByVStfL10cIjEy80dwvItoJBix+Qlilc 385K9NHye64KLQxrymtbetN9cTDe598C2TRSTFDCi4e4egkHOLamOEhJuoqR/AgHPfIb WjTw== X-Gm-Message-State: AKS2vOw0s7FHGmOcyy2MTkLbVrJRX++M9zkOGKh+OSm2QRV04Yku9FGM A6cH12ZAFLZJvG3G X-Received: by 10.99.171.66 with SMTP id k2mr14189994pgp.248.1498714082313; Wed, 28 Jun 2017 22:28:02 -0700 (PDT) Received: from localhost ([122.171.238.149]) by smtp.gmail.com with ESMTPSA id b7sm9822944pfl.44.2017.06.28.22.28.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jun 2017 22:28:01 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Ingo Molnar , Peter Zijlstra , Srinivas Pandruvada , Len Brown , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org, smuckle.linux@gmail.com, juri.lelli@arm.com, Morten.Rasmussen@arm.com, patrick.bellasi@arm.com, eas-dev@lists.linaro.org Subject: [PATCH V2 3/4] intel_pstate: Ignore scheduler cpufreq callbacks on remote CPUs Date: Thu, 29 Jun 2017 10:56:32 +0530 Message-Id: X-Mailer: git-send-email 2.13.0.71.gd7076ec9c9cb In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Steve Muckle In preparation for the scheduler cpufreq callback happening on remote CPUs, check for this case in intel_pstate which currently requires the callback run on the local CPU. Such callbacks are ignored for now. Signed-off-by: Steve Muckle Signed-off-by: Viresh Kumar --- drivers/cpufreq/intel_pstate.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.13.0.71.gd7076ec9c9cb diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 4ce501148790..7a2a8ee579ef 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1755,6 +1755,9 @@ static void intel_pstate_update_util(struct update_util_data *data, u64 time, struct cpudata *cpu = container_of(data, struct cpudata, update_util); u64 delta_ns; + if (smp_processor_id() != data->cpu) + return; + if (flags & SCHED_CPUFREQ_IOWAIT) { cpu->iowait_boost = int_tofp(1); } else if (cpu->iowait_boost) {