]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/bootflag: Replace open-coded parity calculation with parity8()
authorKuan-Wei Chiu <visitorckw@gmail.com>
Thu, 27 Feb 2025 12:55:45 +0000 (13:55 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 27 Feb 2025 13:00:30 +0000 (14:00 +0100)
commit9c94c14ca39577b6324c667d8450ffa19fc1e5c4
treec9919aa789d2c58e3ccdedeefbc37719a75769bb
parentadf6819278ba34be1d29ffcdca5c2ccd2123f667
x86/bootflag: Replace open-coded parity calculation with parity8()

Refactor parity calculations to use the standard parity8() helper. This
change eliminates redundant implementations and improves code
efficiency.

[ ubizjak: Updated the patch to apply to the latest x86 tree. ]

Co-developed-by: Yu-Chun Lin <eleanor15x@gmail.com>
Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lore.kernel.org/r/20250227125616.2253774-1-ubizjak@gmail.com
arch/x86/kernel/bootflag.c