[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <933af72ace7599129832d85e44ff62b8ad35446b.1529706536.git.reinette.chatre@intel.com>
Date: Fri, 22 Jun 2018 15:42:32 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: tglx@...utronix.de, fenghua.yu@...el.com, tony.luck@...el.com,
vikas.shivappa@...ux.intel.com
Cc: gavin.hindman@...el.com, jithu.joseph@...el.com,
dave.hansen@...el.com, mingo@...hat.com, hpa@...or.com,
x86@...nel.org, linux-kernel@...r.kernel.org,
Ingo Molnar <mingo@...nel.org>,
Reinette Chatre <reinette.chatre@...el.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Peter Zijlstra <peterz@...radead.org>
Subject: [PATCH V7 41/41] x86/intel_rdt: Simplify index type
From: Ingo Molnar <mingo@...nel.org>
Simplify this pattern:
#ifdef CONFIG_X86_64
u64 i;
#else
u32 i;
#endif
... to the more natural and shorter one:
unsigned long i;
No change in functionality.
Acked-by Thomas Gleixner <tglx@...utronix.de>
Cc: Reinette Chatre <reinette.chatre@...el.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: fenghua.yu@...el.com
Cc: hpa@...or.com
Cc: tony.luck@...el.com
Fixes: 0438fb1aebf4 ("x86/intel_rdt: Pseudo-lock region creation/removal core")
Link: https://lkml.kernel.org/r/5773274f9947c4d8becbabd2655bd1628f060147.1529474468.git.reinette.chatre@intel.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c
index a1670e50d6ce..df68972d5e3e 100644
--- a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c
+++ b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c
@@ -415,11 +415,7 @@ static int pseudo_lock_fn(void *_rdtgrp)
struct rdtgroup *rdtgrp = _rdtgrp;
struct pseudo_lock_region *plr = rdtgrp->plr;
u32 rmid_p, closid_p;
-#ifdef CONFIG_X86_64
- u64 i;
-#else
- u32 i;
-#endif
+ unsigned long i;
#ifdef CONFIG_KASAN
/*
* The registers used for local register variables are also used
@@ -874,11 +870,7 @@ static int measure_cycles_lat_fn(void *_plr)
{
struct pseudo_lock_region *plr = _plr;
u64 start, end;
-#ifdef CONFIG_X86_64
- u64 i;
-#else
- u32 i;
-#endif
+ unsigned long i;
#ifdef CONFIG_KASAN
/*
* The registers used for local register variables are also used
@@ -932,11 +924,7 @@ static int measure_cycles_perf_fn(void *_plr)
struct pseudo_lock_region *plr = _plr;
unsigned long long l2_hits, l2_miss;
u64 l2_hit_bits, l2_miss_bits;
-#ifdef CONFIG_X86_64
- u64 i;
-#else
- u32 i;
-#endif
+ unsigned long i;
#ifdef CONFIG_KASAN
/*
* The registers used for local register variables are also used
--
2.17.0
Powered by blists - more mailing lists