lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <523745bf-c399-dc2e-ac57-1d580254802a@gmail.com>
Date:   Sun, 16 May 2021 16:08:54 +0800
From:   Haowen Hu <src.res.211@...il.com>
To:     peterz@...radead.org, mingo@...hat.com, acme@...nel.org,
        mark.rutland@....com, alexander.shishkin@...ux.intel.com,
        jolsa@...hat.com, namhyung@...nel.org, tglx@...utronix.de,
        bp@...en8.de, x86@...nel.org, hpa@...or.com
Cc:     linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
        src.res.211@...il.com
Subject: [PATCH] perf/x86: Improve code format

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

Signed-off-by: Haowen Hu <src.res.211@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ