]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/cacheinfo: Extract out cache self-snoop checks
authorAhmed S. Darwish <darwi@linutronix.de>
Mon, 24 Mar 2025 13:33:21 +0000 (14:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 09:23:24 +0000 (10:23 +0100)
commit05d48035e5f69cfe3c125b2bac47e4003b4acccf
tree286d378fbec91658059d70666f6dc807dd9f72e3
parentfda5f817ae41035db9e36854600525145688b35e
x86/cacheinfo: Extract out cache self-snoop checks

The logic of not doing a cache flush if the CPU declares cache self
snooping support is repeated across the x86/cacheinfo code.  Extract it
into its own function.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250324133324.23458-27-darwi@linutronix.de
arch/x86/kernel/cpu/cacheinfo.c