From patchwork Thu Mar 9 11:45:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 95114 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp319030qgd; Thu, 9 Mar 2017 03:46:41 -0800 (PST) X-Received: by 10.84.198.164 with SMTP id p33mr16768283pld.127.1489060001467; Thu, 09 Mar 2017 03:46:41 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si6238978pgy.46.2017.03.09.03.46.41; Thu, 09 Mar 2017 03:46:41 -0800 (PST) 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 S932074AbdCILqk (ORCPT + 13 others); Thu, 9 Mar 2017 06:46:40 -0500 Received: from mail-pg0-f44.google.com ([74.125.83.44]:35344 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932283AbdCILqC (ORCPT ); Thu, 9 Mar 2017 06:46:02 -0500 Received: by mail-pg0-f44.google.com with SMTP id b129so25706578pgc.2 for ; Thu, 09 Mar 2017 03:46:01 -0800 (PST) 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=3T2DxxEAaMnUpBx6/tgS5n6JCLnzS5FBEyTLgMzUD3I=; b=YKV26Bq+TdfBV2VFwQg2u3ZHmUfzoSTPjVq/xu3uXEx/GWFALjjTYbZnEJ9CAHrqbC 5tz0A6foV+9NoesMik/aJsG0H+Xuw4o69A5CCTZsMWXoQkJF4/RdAMeQxyFm46arkLul KBVNoje3TliRO67xHvSbn281CQar9ZvKdjMVU= 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=3T2DxxEAaMnUpBx6/tgS5n6JCLnzS5FBEyTLgMzUD3I=; b=tAGRf0o0oDkUrUP12htidcUnsrxAueDZ2OW783Bo0boskpLc6Jhhen/sDdyf12eIfH 4mZsYkY/cXHHq1GwbGJHkJ1UaY3hXOybrQZGOG3E/9neaZv0Z7OwQnFAdWKSndQCynjb Ox2Wi2cxXYFPJEtkxb3SpBgpUP+ROjtOZ2jkhXtz++NAOYzT8oNbMsSBC5gkRP+F3aHJ D5HATAJTh/2H6ZZADUkvZXGT0tQ+FvArE+yGtZfdxzhVKfAMOqQ8NNyoV7ISOdAGuopJ eBUfb7UigJ5DaoOtuiisdp1H0JOEho353BU1hPOn9oubw7drNn7tqM/F2peQxkaVAP2Z 65Vw== X-Gm-Message-State: AMke39k8LCHMUbStS6Ihu7x2BCSU0Gls/Cl+bjU257/KjKtSSHTx6uKkVxpa78Vvrga2KuKI X-Received: by 10.84.196.164 with SMTP id l33mr16870865pld.0.1489059961065; Thu, 09 Mar 2017 03:46:01 -0800 (PST) Received: from localhost ([122.171.239.200]) by smtp.gmail.com with ESMTPSA id 132sm12167568pgf.27.2017.03.09.03.46.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 03:46:00 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Ingo Molnar , Peter Zijlstra , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , smuckle.linux@gmail.com, juri.lelli@arm.com, Morten.Rasmussen@arm.com, patrick.bellasi@arm.com, eas-dev@lists.linaro.org Subject: [RFC 7/9] cpufreq: governor: support scheduler cpufreq callbacks on remote CPUs Date: Thu, 9 Mar 2017 17:15:17 +0530 Message-Id: <49216ebaad6b26a1d5916350d07654181662b15b.1489058244.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b 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, add support for this in the legacy (ondemand and conservative) governors. The legacy governors make assumptions about the callback occurring on the CPU being updated. Signed-off-by: Steve Muckle [ vk: minor updates in commit log ] Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_governor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.1.410.g6faf27b diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index 47e24b5384b3..c9e786e7ee1f 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c @@ -315,7 +315,7 @@ static void dbs_update_util_handler(struct update_util_data *data, u64 time, policy_dbs->last_sample_time = time; policy_dbs->work_in_progress = true; - irq_work_queue(&policy_dbs->irq_work); + irq_work_queue_on(&policy_dbs->irq_work, data->cpu); } static void gov_set_update_util(struct policy_dbs_info *policy_dbs,