]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/cpufeatures: Add X86_FEATURE_AMD_WORKLOAD_CLASS feature bit
authorPerry Yuan <perry.yuan@amd.com>
Mon, 28 Oct 2024 02:02:41 +0000 (21:02 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 28 Oct 2024 12:44:44 +0000 (13:44 +0100)
commit0c487010cb4f79e451ac9e7cc47494cb21ac3566
tree5415bbbd15cc1d641ed352b9d2e4a391f7fad171
parent3eef25ab0d89cb1e55699a4d242c5afe17dbbd07
x86/cpufeatures: Add X86_FEATURE_AMD_WORKLOAD_CLASS feature bit

Add a new feature bit that indicates support for workload-based heuristic
feedback to OS for scheduling decisions.

When the bit set, threads are classified during runtime into enumerated
classes. The classes represent thread performance/power characteristics
that may benefit from special scheduling behaviors.

Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241028020251.8085-4-mario.limonciello@amd.com
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/scattered.c