linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf/x86: Improve code format
@ 2021-05-16  8:08 Haowen Hu
  2021-05-16 12:15 ` Peter Zijlstra
  0 siblings, 1 reply; 2+ messages in thread
From: Haowen Hu @ 2021-05-16  8:08 UTC (permalink / raw)
  To: peterz, mingo, acme, mark.rutland, alexander.shishkin, jolsa,
	namhyung, tglx, bp, x86, hpa
  Cc: linux-perf-users, linux-kernel, src.res.211

Reformatted several lines of code, in order to satisfy the kernel code
format.

Signed-off-by: Haowen Hu <src.res.211@gmail.com>
---
  arch/x86/events/core.c | 2 +-
  arch/x86/events/rapl.c | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c
index 8e509325c2c3..8cd61beb97e7 100644
--- a/arch/x86/events/core.c
+++ b/arch/x86/events/core.c
@@ -2829,7 +2829,7 @@ perf_callchain_user32(struct pt_regs *regs, struct 
perf_callchain_entry_ctx *ent
  static inline int
  perf_callchain_user32(struct pt_regs *regs, struct 
perf_callchain_entry_ctx *entry)
  {
-    return 0;
+    return 0;
  }
  #endif

diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index 84a1042c3b01..da43975d9929 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -131,7 +131,7 @@ struct rapl_model {
      enum rapl_unit_quirk    unit_quirk;
  };

- /* 1/2^hw_unit Joule */
+/* 1/2^hw_unit Joule */
  static int rapl_hw_unit[NR_RAPL_DOMAINS] __read_mostly;
  static struct rapl_pmus *rapl_pmus;
  static cpumask_t rapl_cpu_mask;
@@ -209,7 +209,7 @@ static u64 rapl_event_update(struct perf_event *event)

  static void rapl_start_hrtimer(struct rapl_pmu *pmu)
  {
-       hrtimer_start(&pmu->hrtimer, pmu->timer_interval,
+    hrtimer_start(&pmu->hrtimer, pmu->timer_interval,
               HRTIMER_MODE_REL_PINNED);
  }

-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] perf/x86: Improve code format
  2021-05-16  8:08 [PATCH] perf/x86: Improve code format Haowen Hu
@ 2021-05-16 12:15 ` Peter Zijlstra
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2021-05-16 12:15 UTC (permalink / raw)
  To: Haowen Hu
  Cc: mingo, acme, mark.rutland, alexander.shishkin, jolsa, namhyung,
	tglx, bp, x86, hpa, linux-perf-users, linux-kernel

On Sun, May 16, 2021 at 04:08:54PM +0800, Haowen Hu wrote:
> Reformatted several lines of code, in order to satisfy the kernel code
> format.
> 
> Signed-off-by: Haowen Hu <src.res.211@gmail.com>

Your patch is whitespace damaged, also please take your efforts
elsewhere, I don't much care for random nothing changes like this.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-16 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-16  8:08 [PATCH] perf/x86: Improve code format Haowen Hu
2021-05-16 12:15 ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).