From patchwork Fri Nov 13 00:52:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 7607571 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AAFDABF90C for ; Fri, 13 Nov 2015 00:52:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B306C20678 for ; Fri, 13 Nov 2015 00:52:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5B09207F0 for ; Fri, 13 Nov 2015 00:52:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754168AbbKMAwo (ORCPT ); Thu, 12 Nov 2015 19:52:44 -0500 Received: from mail-qk0-f177.google.com ([209.85.220.177]:33083 "EHLO mail-qk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754113AbbKMAwn (ORCPT ); Thu, 12 Nov 2015 19:52:43 -0500 Received: by qkas77 with SMTP id s77so33217055qka.0 for ; Thu, 12 Nov 2015 16:52:42 -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=MW/vzhP5rmkDp1G0h/gSVuybtzvV3B61Z+7yKCp3N+8=; b=ydoJxgdcZTNsCXQ7mUxtp/ktdQB7bm7kgV1qoOwlQHPSYeI8CtddAWb94/iWa4L8+8 ZSeYfH92DVdjQJDPHcQa+EHUuBlBqhn3T1jWshQWu2rDKTpcI+PkYI+J1BA3/aAee6vB S9hDSos+gwVy4ho2ckb3hXVzOBT7EEYx7xQWl8vwpZdsKneMZayatLBvE9InfLKWWZgi 8Unig8IAakgT+IfPm7rBtGUbOyFtKb5eFXehFRV8yzQjfxEDOk0/eMC5lrTjJDSqAlyI mudjLUUc3N+fcIWHDrgieJGeAqedSNFkgrjBZKlhE+rUQMytDgGfa31bU4DTIhoN1DXh EpvA== 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=MW/vzhP5rmkDp1G0h/gSVuybtzvV3B61Z+7yKCp3N+8=; b=I8JbFXeIH/LP3cHiTqR+jI+Lo8YE+FsnMd7D3wkuNwf9oQIw4pszLnxi4PLivmcABL lxnB7ESWWjMlgsfWPs7dEqxpgNgD+BLTOLbOio8kf/gJlK1cIFqSOHe7+tERjOXPVn7q /2GvrDbGmhCZPcODj5ynHIghKw6a0NpIlx3jATu37HGOf4KYldN45It99GEnekKr0KYG a4alqMDBBAh7oBrIPD00IdJuPgWiCAsAJeJVV56CU6h9WVpQycpWfHDxDKYQVL3lnYed jg7YLQmcbCtsLYc8L/evPwkwBFUI4i26lD3xfNT2ftV1WMvE+H/m+no5xPfS/TqWR361 3nLA== X-Gm-Message-State: ALoCoQkj/4y/03BNPlK0+SC+K+fHYYdyX1fzCEYtQpPz14jx0F1JQGlie4KK2YQkUM2IJK/VJtYQ X-Received: by 10.140.101.168 with SMTP id u37mr18967387qge.103.1447375962217; Thu, 12 Nov 2015 16:52:42 -0800 (PST) Received: from esagroth.lan ([98.122.160.202]) by smtp.gmail.com with ESMTPSA id r66sm1671630qhb.35.2015.11.12.16.52.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 16:52:41 -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: Use h/w reduced version of the PCCT structure Date: Thu, 12 Nov 2015 19:52:30 -0500 Message-Id: <1447375950-3679-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=unavailable 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 CPPC is enabled only on platforms which support the h/w reduced ACPI specification. So use the h/w reduced version of the PCCT consistently while deferencing PCCT contents. Signed-off-by: Ashwin Chaugule --- drivers/acpi/cppc_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c index 3c083d2..6730f96 100644 --- a/drivers/acpi/cppc_acpi.c +++ b/drivers/acpi/cppc_acpi.c @@ -304,7 +304,7 @@ EXPORT_SYMBOL_GPL(acpi_get_psd_map); static int register_pcc_channel(int pcc_subspace_idx) { - struct acpi_pcct_subspace *cppc_ss; + struct acpi_pcct_hw_reduced *cppc_ss; unsigned int len; if (pcc_subspace_idx >= 0) {