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:
parent
72a6c08c44
commit
bf68a7d989
|
@ -23,7 +23,7 @@
|
||||||
* Represents the initial FPU state. It's mostly (but not completely) zeroes,
|
* Represents the initial FPU state. It's mostly (but not completely) zeroes,
|
||||||
* depending on the FPU hardware format:
|
* 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
|
* Track whether the kernel is using the FPU state
|
||||||
|
|
Loading…
Reference in New Issue