From patchwork Tue Nov 17 09:40:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 7634371 Return-Path: X-Original-To: patchwork-linux-arm@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 B27D59F65E for ; Tue, 17 Nov 2015 09:44:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E197420465 for ; Tue, 17 Nov 2015 09:44:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 284E620481 for ; Tue, 17 Nov 2015 09:44:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZycmO-0005VS-Al; Tue, 17 Nov 2015 09:42:24 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zyclx-00057a-SK for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 09:41:59 +0000 Received: by wmdw130 with SMTP id w130so146596519wmd.0 for ; Tue, 17 Nov 2015 01:41:36 -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:in-reply-to:references; bh=NqGxihtJy/lvGsrxg3rbl7exBxP35xyg5SnCdVgYPg0=; b=rTFfCVb/uNhZZxHL/R4eyI4e5DYERu4GBaxJZzxrIrmdvHBtajcalOjJv41qPcsvjZ cvx/jJnPVKw9zHbl6Dfo3YK3vrjp3/1vkyo+2kqt8wDWoDM41iuwShXhScRlNyP2TNzO AoeTjlRdQ/tsq6RdvXWwq/R3ps0IwqGKfFZWvoXaqLqzxQKg/vrBwE+V9M20byOk6hBi aNAzJEaT7x2zgdJPoF86eKxvtKP5kOCSK9Ep/TUnfTyISsB4qwb7e3HZG5f/YcGNDSou M5dVHJcvdboQ08/zgZ+TNTRb74NIRJKMDVa2SL4BFqsZIHLIExkto1VlBW1Jc5tPqIAp 4agw== 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; bh=NqGxihtJy/lvGsrxg3rbl7exBxP35xyg5SnCdVgYPg0=; b=Qs4oOOULH23n3c4zZgw11kY9A9aKU6jZQiyQtOrqhUVmYtg7qyo47V7C8Rj4QMv7KA AqiCjY6INU0eQLJIktDLeN+OnbzVjeWJ6g+Q3od9As72oWvXrD+z2o1o3MJzqOpAbWoD xBNd4HpNqt13+KPMdgJSwqMh0qsLpVY/YkJTOGcvGqO9MLl6yQCRLZo6EuIdImAhHdSc LF/t0V7OPd2A3h0FdnJhGBoPiqixDa+/PbRo8q1XhTUqPyFb/T1eVeFjzLmTAJkrfcSs sNhH1apZEgBh0E/T5DcbxU44HNCAlpMFzUtB2g5p9G1oOAkULushmUS9tgk4OIN24kCH pAMw== X-Gm-Message-State: ALoCoQmy5XvVFHM3hHxDWe2fu0mPcGI8fvd9hMHP/WHQpmdHwZ6DX/C4Ryn/5m8HzWwg5c5uv8Qp X-Received: by 10.194.200.233 with SMTP id jv9mr42045236wjc.133.1447753296350; Tue, 17 Nov 2015 01:41:36 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id cw3sm34758194wjb.26.2015.11.17.01.41.34 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:41:35 -0800 (PST) From: shannon.zhao@linaro.org To: ian.campbell@citrix.com, stefano.stabellini@citrix.com, keir@xen.org, jbeulich@suse.com, andrew.cooper3@citrix.com, julien.grall@citrix.com, xen-devel@lists.xen.org Subject: [PATCH v3 03/62] acpi/pmstat: Build pmstat for x86 only Date: Tue, 17 Nov 2015 17:40:02 +0800 Message-Id: <1447753261-7552-4-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> References: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_014158_256311_8CD89CAC X-CRM114-Status: GOOD ( 10.40 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, hangaohuai@huawei.com, ard.biesheuvel@linaro.org, shannon.zhao@linaro.org, christoffer.dall@linaro.org, peter.huangpeng@huawei.com, david.vrabel@citrix.com, zhaoshenglong@huawei.com, linux-arm-kernel@lists.infradead.org, roger.pau@citrix.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,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 From: Parth Dixit Pmstat is currently not supported for ARM in Xen. Configure and build pmstat for x86 architecture only. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/common/sysctl.c | 2 +- xen/drivers/acpi/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/sysctl.c b/xen/common/sysctl.c index 85e853f..8273ad4 100644 --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -171,7 +171,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl) op->u.availheap.avail_bytes <<= PAGE_SHIFT; break; -#ifdef HAS_ACPI +#ifdef HAS_CPUFREQ case XEN_SYSCTL_get_pmstat: ret = do_get_pm_info(&op->u.get_pmstat); break; diff --git a/xen/drivers/acpi/Makefile b/xen/drivers/acpi/Makefile index 3bb626e..c7d006a 100644 --- a/xen/drivers/acpi/Makefile +++ b/xen/drivers/acpi/Makefile @@ -5,7 +5,7 @@ subdir-$(x86) += apei obj-bin-y += tables.init.o obj-$(HAS_NUMA) += numa.o obj-y += osl.o -obj-y += pmstat.o +obj-$(HAS_CPUFREQ) += pmstat.o obj-$(x86) += hwregs.o obj-$(x86) += reboot.o