From patchwork Thu Jun 9 03:08:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 9166171 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BCBEC60572 for ; Thu, 9 Jun 2016 03:10:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B41BF281FE for ; Thu, 9 Jun 2016 03:10:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A900E2824F; Thu, 9 Jun 2016 03:10:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53AF3281FE for ; Thu, 9 Jun 2016 03:10:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933845AbcFIDJG (ORCPT ); Wed, 8 Jun 2016 23:09:06 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:35781 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933767AbcFIDJF (ORCPT ); Wed, 8 Jun 2016 23:09:05 -0400 Received: by mail-pf0-f175.google.com with SMTP id c2so8685138pfa.2 for ; Wed, 08 Jun 2016 20:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aWOzfrltL9QMERoAhm/x3Cn5LE0/0OIOYNLsL7DAmcY=; b=ANqVxEwbm3fwWnFoqtgVIkXF7XI7LVVgb/LdvKoV8Bi9rnPByZqkuL2JnZLf/HGRva hbedNEqJ8UMb1dgTNjYrIaRoGakUdTyHZXcH+Pw1AFLnEdcKppp/G6vkMQ7X3tBO/xhy ZH5RCL78xXMDBJgEyJfw/zcwoqq1wpZAwTLO8= 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=aWOzfrltL9QMERoAhm/x3Cn5LE0/0OIOYNLsL7DAmcY=; b=KDxLAtETyko+Kf8B/wQJ3Lex4G3tOm2piHDaIjkqRO/OjagzkUbF4mhY/+pYWEzZsW 5G35sM8RxqGoXUdzkTzpdkIn9Ae3ceq3sur7gOzrsbYkpkYMFKG/tOIJifeaezd+e1Fs O1QvRfSutyC7DFzsXcKICAPr9CxLXPOid955udISjF9gCHiOkNXGFXFCIqLXXIip4MOg PWIqcvhJzPehztfnAR/AwU7TdEsJUx84T2LCpzoVWg/73N8zNo+I2XvpDzdwepnGMrGg wqJajntdH8p42wpoe7oYO2Eyomfw42F0thQ7ZbDO4uWRpxnL0n2nOAQPQyD6YH0dzXB2 Ksig== X-Gm-Message-State: ALyK8tIxaKVeEHF6KSLYpHLtlCNng48hEGgea9Z66s/9722WftmRXEIg6EgGmnQ2NeXjzV7G X-Received: by 10.98.102.205 with SMTP id s74mr2049285pfj.54.1465441744665; Wed, 08 Jun 2016 20:09:04 -0700 (PDT) Received: from ketosis.mtv.corp.google.com ([172.22.65.104]) by smtp.gmail.com with ESMTPSA id b186sm5482186pfa.61.2016.06.08.20.09.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jun 2016 20:09:04 -0700 (PDT) From: dbasehore@chromium.org To: linux-kernel@vger.kernel.org Cc: dbasehore@chromium.org, linux-pm@vger.kernel.org, rjw@rjwysocki.net, pavel@ucw.cz, len.brown@intel.com, tglx@linutronix.de, gnomes@lxorguk.ukuu.org.uk, peterz@infradead.org Subject: [PATCH v3 1/5] x86: stub out pmc function Date: Wed, 8 Jun 2016 20:08:54 -0700 Message-Id: <1465441738-7972-2-git-send-email-dbasehore@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1465441738-7972-1-git-send-email-dbasehore@chromium.org> References: <1465441738-7972-1-git-send-email-dbasehore@chromium.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Derek Basehore This creates an inline function of intel_pmc_slp_s0_counter_read for !CONFIG_INTEL_PMC_CORE. Signed-off-by: Derek Basehore --- arch/x86/include/asm/pmc_core.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/pmc_core.h b/arch/x86/include/asm/pmc_core.h index d4855f1..786e526 100644 --- a/arch/x86/include/asm/pmc_core.h +++ b/arch/x86/include/asm/pmc_core.h @@ -22,6 +22,10 @@ #define _ASM_PMC_CORE_H /* API to read SLP_S0_RESIDENCY counter */ -int intel_pmc_slp_s0_counter_read(u32 *data); +#ifdef CONFIG_INTEL_PMC_CORE +extern int intel_pmc_slp_s0_counter_read(u32 *data); +#else +static inline int intel_pmc_slp_s0_counter_read(u32 *data) { return -ENOSYS; } +#endif #endif /* _ASM_PMC_CORE_H */