]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cpu/speculation: Uninline and export CPU mitigations helpers
authorTyler Hicks <tyhicks@canonical.com>
Mon, 4 Nov 2019 11:22:02 +0000 (12:22 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 4 Dec 2019 09:29:26 +0000 (10:29 +0100)
commita122e8fcc42704962d958a9ead1fe4dad7672b19
tree971923a004c42bcd1c9c7c5142d50b0051233829
parent1c7402fdeb28741b130c76a1f5637d031e6abd61
cpu/speculation: Uninline and export CPU mitigations helpers

BugLink: https://bugs.launchpad.net/bugs/1852338
commit 731dc9df975a5da21237a18c3384f811a7a41cc6 upstream.

A kernel module may need to check the value of the "mitigations=" kernel
command line parameter as part of its setup when the module needs
to perform software mitigations for a CPU flaw.

Uninline and export the helper functions surrounding the cpu_mitigations
enum to allow for their usage from a module.

Lastly, privatize the enum and cpu_mitigations variable since the value of
cpu_mitigations can be checked with the exported helper functions.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/cpu.h
kernel/cpu.c