From patchwork Thu Apr 21 08:58:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66348 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp17003qge; Thu, 21 Apr 2016 01:59:51 -0700 (PDT) X-Received: by 10.98.80.10 with SMTP id e10mr18923819pfb.141.1461229190629; Thu, 21 Apr 2016 01:59:50 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f22si2477904pfj.46.2016.04.21.01.59.50; Thu, 21 Apr 2016 01:59:50 -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; 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 dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752251AbcDUI7h (ORCPT + 29 others); Thu, 21 Apr 2016 04:59:37 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:36302 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752134AbcDUI7e (ORCPT ); Thu, 21 Apr 2016 04:59:34 -0400 Received: by mail-pf0-f181.google.com with SMTP id e128so27972193pfe.3 for ; Thu, 21 Apr 2016 01:59:34 -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=LtZkiRh3c4yBUCW8TnZubLwLsKx3JoO7nH65Jmnp9Xk=; b=SVk2ZCW3z4kuq49XrfDuzTDLJeueV/dhsAbCGe+CfGaqJtVk+0tqh7GeTbfR5qHHax oOzuTOpPwwigA+0qBqPocSWzibP3xHMvUN/ju8kzEUNJXaGukAw1efvEXP984a/+DvwQ KYeOzdIQ6FnOCRBIr9hFBsDo6ggYyYqJvhLvA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=LtZkiRh3c4yBUCW8TnZubLwLsKx3JoO7nH65Jmnp9Xk=; b=UndBEzDH1dwLp5CJRSb9WDJedxlQvuJV/s9JZnv013TN2kBW+Hnd6y4MnrrQ4mm5Dj ZHJepV/k4AiO5cPUrIE+6ACeXSaluRnbFz89TK81i7Jac3zPqn0jHGw2+JJbJI08LOqF U4m4Pxq5Gtkwz7rxdEm+xoc0o2I7si1FObCaqEgt2+8fhkLF6HPdhd9Dy7kfF4BxhJZH NC9JEYVD6OKK79mrq/IIyC+4IjXthnWR78CWdQaqO6VFsmdkCSCf/k/ezxjpBBLjMKZf fifmVurw+sVHxX7txe2tIzcOsEL+fW1ZtyJBHLXHq90U0zIosSQLw7Gp0749GZCI2en9 2dWw== X-Gm-Message-State: AOPr4FUJG4kp+t5y5+a8GecxNdFrql9YnPGvHKT610/6Nn6184oc2H0Aj4n4Ol1h1pKhKfuU X-Received: by 10.98.8.219 with SMTP id 88mr18923118pfi.51.1461229173519; Thu, 21 Apr 2016 01:59:33 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id yp9sm190909pab.42.2016.04.21.01.59.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Apr 2016 01:59:32 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, arnd.bergmann@linaro.org, andrew@lunn.ch, gregory.clement@free-electrons.com, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, thomas.petazzoni@free-electrons.com, Viresh Kumar , linux-kernel@vger.kernel.org Subject: [PATCH 05/10] PM / OPP: Mark shared-opp for non-dt case Date: Thu, 21 Apr 2016 14:28:57 +0530 Message-Id: <11b3f4234120113b3493e9adf5c3e1ce1700f886.1461228504.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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org opp core allows OPPs to be explicitly marked as shared from platform code, in case of operating-point v1 bindings. Though we do everything fine in that case, we don't set the flag in the opp-table to indicate that the OPPs are shared. It works fine today as the flag isn't used anywhere else in the core, but we should be doing the right thing by marking it set. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/cpu.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.1.410.g6faf27b diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c index 491e8684bd5f..55cbf9bd8707 100644 --- a/drivers/base/power/opp/cpu.c +++ b/drivers/base/power/opp/cpu.c @@ -319,6 +319,9 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) __func__, cpu); continue; } + + /* Mark opp-table as multiple CPUs are sharing it now */ + opp_table->shared_opp = true; } unlock: mutex_unlock(&opp_table_lock);