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: 56480 Delivered-To: patches@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp736099lbb; Thu, 12 Nov 2015 16:53:14 -0800 (PST) X-Received: by 10.140.227.16 with SMTP id x16mr20276122qhb.46.1447375994499; Thu, 12 Nov 2015 16:53:14 -0800 (PST) Return-Path: Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com. [2607:f8b0:400d:c09::22c]) by mx.google.com with ESMTPS id g189si13822985qhc.117.2015.11.12.16.53.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Nov 2015 16:53:14 -0800 (PST) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 2607:f8b0:400d:c09::22c as permitted sender) client-ip=2607:f8b0:400d:c09::22c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ashwin.chaugule@linaro.org designates 2607:f8b0:400d:c09::22c as permitted sender) smtp.mailfrom=ashwin.chaugule@linaro.org; dkim=pass header.i=@linaro_org.20150623.gappssmtp.com Received: by qkao63 with SMTP id o63so33100616qka.2 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=EOADYKlxcjs55fOjtbSmejHQmsZhorQlLj30iq4RszjVNOKAmhVMmmrngwlH5rzeK9 0o6dTC8oU5SV55EyPIumKxcfsdS9rBEuOewwA22tUGTWGwMo/ABPRDrkMiFs8FyjKija Gc5SQGLYFNZAWE+l8QTtqk8L5sqx5bvm/64f1v7Vb24J7SLdf9OPhhYP02inXRjlbY7n vsvoQJ8CxAWFJfEmAHknaR7MVrlrpsW9uHklV82I3g3SMo2eaxkeUT1UJNk1EMASuvtm qvagOjMHz7+33ClX2AhlHHY4GWSAuC0JZsx8ILNif3NegW/xXqSZg0jM9BgRF8uWkIi8 V8LA== X-Gm-Message-State: ALoCoQli5C7m7nq5mhZDCxkm+DpRYzNo24NVR9MXImo50HBtK7Ja2ZehOpkbS5L5rT/41s2NW1hv X-Received: by 10.55.77.23 with SMTP id a23mr18997831qkb.47.1447375994210; Thu, 12 Nov 2015 16:53:14 -0800 (PST) Return-Path: 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 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(+) -- 1.9.1 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);