From patchwork Fri Nov 13 00:52:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 7607581 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EC09A9F1D3 for ; Fri, 13 Nov 2015 00:53:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1554120678 for ; Fri, 13 Nov 2015 00:53:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D5F6207F3 for ; Fri, 13 Nov 2015 00:53:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754113AbbKMAxP (ORCPT ); Thu, 12 Nov 2015 19:53:15 -0500 Received: from mail-qk0-f169.google.com ([209.85.220.169]:33423 "EHLO mail-qk0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753171AbbKMAxP (ORCPT ); Thu, 12 Nov 2015 19:53:15 -0500 Received: by qkas77 with SMTP id s77so33226299qka.0 for ; Thu, 12 Nov 2015 16:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=msKOQdSsDJHv8WYBJTjgzlzLDfjVonoeNP9EdU/fZCY=; b=xlLJvPNH929LEz4hkL7gz9i/XefOzNTx9mtzWumMf+GtDlko0/cL1/MM47vof2wr6k ecKQBWa2zYUxuU2H76zLfjK4wA2VFPoxUFdLTKgNj4zbUfaZ2N4LJERfeQpNa9TuDstj AZfDDSlrQOOYjLfFIfh2BX2STgM0dWOIt4s6/K385/4UPTnO/MnvX4ncPZI15ZGEK/H2 96HHk4oDPtip36PgNXPlaTBy786+lpL9fMGXWgcnM6/sJXvbRTEE/OP00yw/+goCOn0c YE0wx3EfUOcf5pWeMXrrS3A7lXMxaRBMigxYMk+QTHoLx2y7MtGEkpiTQTvX9EU2RU10 +19A== 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; bh=msKOQdSsDJHv8WYBJTjgzlzLDfjVonoeNP9EdU/fZCY=; b=MbR1w7Y/6QqF5zRgWLlOMmStgC7EBFPKfqYYo8yC3HTpsBubIXkHakWfwaObbk886t cB+m52qx2JxoKlaNSc64M1W/ftbUSyz/HSIfjc869To10Y519fdq/M12P2C9yuLLTKpB nhtr0cmmwmdVwvaNiF+EAnrE6X0hxCmR2mdYaC+A5X20mmWxpGIiSqHhRC4Dm15fsS8o BcUG/v/5RsPcBzjS9nhfxUdgX0HWDoHNg0isftiCLluhXnG9UOCsOIAU5CzqtOukrlC6 Tf/OtBcxSpp2Yo+Z1yBWmCR+Q9pdNAnbSd6NofN2gvQ5Z0WOaA+Rl2nZ2hOthK94pH7o fRDw== X-Gm-Message-State: ALoCoQk07dsUDBGk3hfny5wzEo3vhCiMW1A+Jg6y8kHwep8VRz3kxd1CSeFGpsUhG2TWJVm6ZFvV X-Received: by 10.55.77.23 with SMTP id a23mr18997831qkb.47.1447375994210; Thu, 12 Nov 2015 16:53:14 -0800 (PST) Received: from esagroth.lan ([98.122.160.202]) by smtp.gmail.com with ESMTPSA id x44sm4705651qgx.44.2015.11.12.16.53.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 16:53:12 -0800 (PST) From: Ashwin Chaugule To: rafael@kernel.org Cc: linux-acpi@vger.kernel.org, linaro-acpi@lists.linaro.org, patches@linaro.org, Ashwin Chaugule Subject: [PATCH] CPPC: Initialize CPUFreq CPU co-ord type correctly Date: Thu, 12 Nov 2015 19:52:54 -0500 Message-Id: <1447375974-3736-1-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The CPU policy struct indicates the co-ordination type for all CPUs of a common freq domain. Initialize it correctly using the CPU specific data gathered from CPPC ACPI lib via acpi_get_psd_map(). Signed-off-by: Ashwin Chaugule --- drivers/cpufreq/cppc_cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 93c219f..508809b 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c @@ -98,6 +98,7 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) policy->max = cpu->perf_caps.highest_perf; policy->cpuinfo.min_freq = policy->min; policy->cpuinfo.max_freq = policy->max; + policy->shared_type = cpu->shared_type; if (policy->shared_type == CPUFREQ_SHARED_TYPE_ANY) cpumask_copy(policy->cpus, cpu->shared_cpu_map);