x86/fpu: Mark init_fpstate __ro_after_init

Nothing has to write into that state after init.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121456.992342060@linutronix.de
This commit is contained in:
Thomas Gleixner 2021-06-23 14:02:24 +02:00 committed by Borislav Petkov
parent 72a6c08c44
commit bf68a7d989

View file

@ -23,7 +23,7 @@
* Represents the initial FPU state. It's mostly (but not completely) zeroes,
* depending on the FPU hardware format:
*/
union fpregs_state init_fpstate __read_mostly;
union fpregs_state init_fpstate __ro_after_init;
/*
* Track whether the kernel is using the FPU state