x86/mtrr: Remove set_all callback from struct mtrr_ops
authorJuergen Gross <jgross@suse.com>
Wed, 2 Nov 2022 07:47:05 +0000 (08:47 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 10 Nov 2022 12:12:44 +0000 (13:12 +0100)
commit57df636cd336a1929c7ddc5fb48ed124d24cd7b2
treebaf672af3054615659ecd11eb3487fb2e493a242
parent7d71db537b01a6beadbe45a4e6e302272110c2c0
x86/mtrr: Remove set_all callback from struct mtrr_ops

Instead of using an indirect call to mtrr_if->set_all just call the only
possible target cache_cpu_init() directly. Remove the set_all function
pointer from struct mtrr_ops.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221102074713.21493-9-jgross@suse.com
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/mtrr/generic.c
arch/x86/kernel/cpu/mtrr/mtrr.c
arch/x86/kernel/cpu/mtrr/mtrr.h