aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorRoman Kisel <[email protected]>2025-05-07 18:22:26 +0000
committerWei Liu <[email protected]>2025-05-23 16:30:56 +0000
commit43cb39ad260a168abf6da3a48f394afff92d436b (patch)
tree0f6d3729bc472fc2958f7bd6d9d856f1a4990681 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentx86/hyperv: Fix APIC ID and VP index confusion in hv_snp_boot_ap() (diff)
downloadkernel-43cb39ad260a168abf6da3a48f394afff92d436b.tar.gz
kernel-43cb39ad260a168abf6da3a48f394afff92d436b.zip
arch/x86: Provide the CPU number in the wakeup AP callback
When starting APs, confidential guests and paravisor guests need to know the CPU number, and the pattern of using the linear search has emerged in several places. With N processors that leads to the O(N^2) time complexity. Provide the CPU number in the AP wake up callback so that one can get the CPU number in constant time. Suggested-by: Michael Kelley <[email protected]> Signed-off-by: Roman Kisel <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions