]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/mce: Rename "first" function as "early"
authorTony Luck <tony.luck@intel.com>
Fri, 14 Feb 2020 22:27:14 +0000 (14:27 -0800)
committerBorislav Petkov <bp@suse.de>
Tue, 14 Apr 2020 13:55:01 +0000 (15:55 +0200)
commitc9c6d216ed28be6e2c91e3651af169eca284813a
treede3e004921a7bb9be104020351578e84ebcc96aa
parent3e0fdec858d82c829774f271e88b5ceb17051551
x86/mce: Rename "first" function as "early"

It isn't going to be first on the notifier chain when the CEC is moved
to be a normal user of the notifier chain.

Fix the enum for the MCE_PRIO symbols to list them in reverse order so
that the compiler can give them numbers from low to high priority. Add
an entry for MCE_PRIO_CEC as the highest priority.

 [ bp: Use passive voice, add comments. ]

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20200214222720.13168-2-tony.luck@intel.com
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mce/core.c