]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dmaengine: idxd: Use cpu_feature_enabled()
authorBorislav Petkov <bp@suse.de>
Wed, 2 Jun 2021 10:07:52 +0000 (12:07 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:39 +0000 (19:23 +0200)
commit9a7ddbe6526fc2b2f771a1c4a69e951e2f297542
tree2a56b54d2e83685108d8a5c13edb4236ea0f0517
parent6a0ae1f06e0b36a8fc54f0fd7fa18e28b3ec0e89
dmaengine: idxd: Use cpu_feature_enabled()

BugLink: https://bugs.launchpad.net/bugs/1933691
commit 74b2fc882d380d8fafc2a26f01d401c2a7beeadb upstream.

When testing x86 feature bits, use cpu_feature_enabled() so that
build-disabled features can remain off, regardless of what CPUID says.

Fixes: 8e50d392652f ("dmaengine: idxd: Add shared workqueue support")
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-By: Vinod Koul <vkoul@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/dma/idxd/init.c