x86/apic: Annotate global config variables as "read-only after init"
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 5 Aug 2019 21:21:34 +0000 (14:21 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 7 Aug 2019 13:24:21 +0000 (15:24 +0200)
commit6444b40eeda4f78f57b255dd7ecb8d3e5936eea2
tree1b268d2dce82e57167e9e0af7bf0e04fbb276ac6
parent43931d350f30c6cd8c2f498d54ef7d65750abc92
x86/apic: Annotate global config variables as "read-only after init"

Mark the APIC's global config variables that are constant after boot as
__ro_after_init to help document that the majority of the APIC config is
not changed at runtime, and to harden the kernel a smidge.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190805212134.12001-1-sean.j.christopherson@intel.com
arch/x86/kernel/apic/apic.c