Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1683626

Re: [PATCH v5 1/5] x86: stub out pmc function

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Andy Shevchenko <andy.shevchenko@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v5 1/5] x86: stub out pmc function
Date Sat, 08 Jul 2017 18:10:02 +0200
Message-ID <u10sW-4ls-9@gated-at.bofh.it> (permalink)
References <u0LtT-35r-3@gated-at.bofh.it>
X-Original-To Derek Basehore <dbasehore@chromium.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dbcb2+cccNJ/Hcqjp+qMSj4aljrl8RVpp0N1jrwHZHc=; b=QcKzn2n91gK4s6OOOn8VkljYZKQMRJZhixDPMtlvj+DnaAsos/2neymSoazT4IZWtf wA9s5GpeemOCd04AJwBSmBFNS0zQjHPhe/1P8OntFf6NmWfG7txCQywa8hDgMu+Bb99p /MpLEpRD3elQr9NqiWITqiKxlNe6dlReczwDIu8nROWIHJERryJ2k2hAt8Zz8Pib9Fgd oZhIYLVkFwPy8Gu/f19pXFQYCoWqdlzK/YwvXW7tQ0LzdyjtAqADTVR4ghm1bRZhDssp JBv6TIWCeAFMXoO8S1AZMWliEIqFcL6sKVxK4hWO6TArQApnz+/eex9HkWD06ChFy6cW zp6A==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dbcb2+cccNJ/Hcqjp+qMSj4aljrl8RVpp0N1jrwHZHc=; b=pZLVkBP4/K/8UZSAgW5dn/rVqkGdAboQ5mAt5Me2UsybqVZxfLfO952ymm/pp8f1IE Gs7umzlT3ZUjukVLpM1AAS6zudvor6VYLGCJBxfzCcQx4kh30L7l2Zz3u9+oHx2Ncheq EkoFZ1J4qsJtUBTVNxuN+rTCJWL2YGIgCp42Sdl4AyYkEZvVhIVIRJnXootNObLU7KCa EyqZCYc8EIVIo++YKgpGt4lb6XCNQ2w9Obzj0mS83ogFbaSQkIv5NeY4RHvBrh5JcYja 3mzIo3825gKvcX8X1pFixzkfjPPqf8LvS4zh74mfLAkiy53xrhH9ZesYfdKIR6NhuPC9 F4sg==
X-Gm-Message-State AKS2vOzmrmzRsRp5FDohZ8zduVPxsaVe0fkV8eMTI03JosFnXdUfRv47 pxwIrrevV6z+HH2x9+FZhkTO0RdTDg==
X-Received by 10.55.104.85 with SMTP id d82mr67042213qkc.165.1499529644617; Sat, 08 Jul 2017 09:00:44 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 41
Organization linux.* mail to news gateway
X-Original-Cc "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>, "x86@kernel.org" <x86@kernel.org>, Platform Driver <platform-driver-x86@vger.kernel.org>, "Rafael J . Wysocki" <rjw@rjwysocki.net>, Len Brown <len.brown@intel.com>, "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
X-Original-Date Sat, 8 Jul 2017 19:00:43 +0300
X-Original-Message-ID <CAHp75VeB_osvYsgmo5WcDbjB+ZWYVEG6CP043KxFoPximDReHA@mail.gmail.com>
X-Original-References <20170708000303.21863-1-dbasehore@chromium.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1683626

Show key headers only | View raw


On Sat, Jul 8, 2017 at 3:02 AM, Derek Basehore <dbasehore@chromium.org> wrote:
> This creates an inline function of intel_pmc_slp_s0_counter_read for
> !CONFIG_INTEL_PMC_CORE.

it doesn't make sense alone.
There is a plan to move this header to where it nowadays belongs to, i.e.
include/linux/platform_data/x86/.

Please, do this relocation first.

>
> Signed-off-by: Derek Basehore <dbasehore@chromium.org>
> ---
>  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 d4855f11136d..5d142d915f30 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 -EPERM; }
> +#endif
>
>  #endif /* _ASM_PMC_CORE_H */
> --
> 2.13.2.725.g09c95d1e9-goog
>



-- 
With Best Regards,
Andy Shevchenko

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v5 1/5] x86: stub out pmc function Derek Basehore <dbasehore@chromium.org> - 2017-07-08 02:10 +0200
  Re: [PATCH v5 1/5] x86: stub out pmc function Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-07-08 18:10 +0200

csiph-web