From patchwork Sun May 17 20:03:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 48643 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B982421411 for ; Sun, 17 May 2015 20:06:36 +0000 (UTC) Received: by wgwl7 with SMTP id l7sf1246372wgw.0 for ; Sun, 17 May 2015 13:06:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=pSAaDQD2hEedXm+GxDjI5dSher9uPPZvtuHaiSMhnpg=; b=gGRHBb6pX/BmMmpWORNpomwVqQByL7E6kA1azyuxrcm06i7h2eJBI/ebivS/8txEvO ab0sc4/4yLa6vIMVshHcqeMK9CjCrHXuoP21iX3TwXPLOWHClG2gRrriFIm0W+SNIw19 hUB5sa7klQrXqYvs+l2CtngQsDyf0Weeohh5kGgzgUbAdos7+reFcoctsDS1Bqpui+2r jY3BIgFMeNBqROkURTC4rmghYW4TXp74a5tv/UV+VVjHRM0cLwGirUu14I2NMUXjp2EW QZiTEoML8tieQGJy0jK4EMNb3SIBLDlX+IOhxg8YKViFXDA8rqLbRrPkBm9uxPHeSkqI gC/Q== X-Gm-Message-State: ALoCoQlQrRvx1mBxC1b2gNYuSnfoh2KHAFY6wL1hvG7sG49yfs93HBn7F/rONYLzcq4K9JqK+lOi X-Received: by 10.112.14.101 with SMTP id o5mr15187285lbc.3.1431893196060; Sun, 17 May 2015 13:06:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.36 with SMTP id g4ls702867lah.33.gmail; Sun, 17 May 2015 13:06:35 -0700 (PDT) X-Received: by 10.152.88.46 with SMTP id bd14mr14621333lab.71.1431893195913; Sun, 17 May 2015 13:06:35 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id cz4si5323416lac.110.2015.05.17.13.06.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 May 2015 13:06:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lagr1 with SMTP id r1so109743539lag.0 for ; Sun, 17 May 2015 13:06:35 -0700 (PDT) X-Received: by 10.152.2.227 with SMTP id 3mr14870978lax.73.1431893195829; Sun, 17 May 2015 13:06:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3507952lbb; Sun, 17 May 2015 13:06:34 -0700 (PDT) X-Received: by 10.52.252.74 with SMTP id zq10mr17912500vdc.18.1431893194469; Sun, 17 May 2015 13:06:34 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id h11si4223283vdj.9.2015.05.17.13.06.33 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 May 2015 13:06:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4na-0001Ju-52; Sun, 17 May 2015 20:04:34 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4nY-0001Jk-7O for xen-devel@lists.xen.org; Sun, 17 May 2015 20:04:32 +0000 Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id 23/6B-03730-F44F8555; Sun, 17 May 2015 20:04:31 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-11.tower-31.messagelabs.com!1431893069!11284792!1 X-Originating-IP: [209.85.192.177] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23110 invoked from network); 17 May 2015 20:04:30 -0000 Received: from mail-pd0-f177.google.com (HELO mail-pd0-f177.google.com) (209.85.192.177) by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 17 May 2015 20:04:30 -0000 Received: by pdbqa5 with SMTP id qa5so117335857pdb.0 for ; Sun, 17 May 2015 13:04:29 -0700 (PDT) X-Received: by 10.70.103.10 with SMTP id fs10mr37520707pdb.141.1431893069177; Sun, 17 May 2015 13:04:29 -0700 (PDT) Received: from localhost.localdomain ([117.247.24.139]) by mx.google.com with ESMTPSA id j9sm7838401pdm.53.2015.05.17.13.04.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 May 2015 13:04:28 -0700 (PDT) From: Parth Dixit To: xen-devel@lists.xen.org Date: Mon, 18 May 2015 01:33:29 +0530 Message-Id: <1431893048-5214-3-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, julien.grall@citrix.com, stefano.stabellini@citrix.com, jbeulich@suse.com, parth.dixit@linaro.org, christoffer.dall@linaro.org Subject: [Xen-devel] [PATCH v2 02/41] arm/acpi: Build pmstat for x86 only X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: parth.dixit@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Pmstat is currently not supported for arm in xen. Configure and build pmstat for x86 architecture only. Signed-off-by: Parth Dixit --- xen/common/sysctl.c | 2 ++ xen/drivers/acpi/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/common/sysctl.c b/xen/common/sysctl.c index 601dd09..96d06cf 100644 --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -170,6 +170,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl) op->u.availheap.avail_bytes <<= PAGE_SHIFT; break; +#ifdef CONFIG_X86 #ifdef HAS_ACPI case XEN_SYSCTL_get_pmstat: ret = do_get_pm_info(&op->u.get_pmstat); @@ -181,6 +182,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl) copyback = 1; break; #endif +#endif case XEN_SYSCTL_page_offline_op: { diff --git a/xen/drivers/acpi/Makefile b/xen/drivers/acpi/Makefile index 7294b5a..009fe5a 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-$(x86) += numa.o obj-y += osl.o -obj-y += pmstat.o +obj-$(x86) += pmstat.o obj-$(x86) += hwregs.o obj-$(x86) += reboot.o