diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-01-10 20:42:36 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-01-10 20:42:36 +0300 |
commit | d3c20bfb74935e31e47fe979a9d3d74c6d9c9040 (patch) | |
tree | 3608afddb50ceb6bed168c93406d8688cd24dc7a | |
parent | 01d5e7872c1c2c04f4fd419c9a4968e148efc5a0 (diff) | |
parent | df0114f1f8711dbf481324c44cf5a8349130b913 (diff) | |
download | linux-d3c20bfb74935e31e47fe979a9d3d74c6d9c9040.tar.xz |
Merge tag 'x86_cache_for_v5.17_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 resource control fixlet from Borislav Petkov:
"A minor code cleanup removing a redundant assignment"
* tag 'x86_cache_for_v5.17_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/resctrl: Remove redundant assignment to variable chunks
-rw-r--r-- | arch/x86/kernel/cpu/resctrl/monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c index c9f0f3d63f75..eaf25a234ff5 100644 --- a/arch/x86/kernel/cpu/resctrl/monitor.c +++ b/arch/x86/kernel/cpu/resctrl/monitor.c @@ -282,7 +282,7 @@ static u64 mbm_overflow_count(u64 prev_msr, u64 cur_msr, unsigned int width) u64 shift = 64 - width, chunks; chunks = (cur_msr << shift) - (prev_msr << shift); - return chunks >>= shift; + return chunks >> shift; } static u64 __mon_event_count(u32 rmid, struct rmid_read *rr) |