diff options
author | Roman Kisel <romank@linux.microsoft.com> | 2025-05-07 11:22:26 -0700 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2025-05-23 16:30:56 +0000 |
commit | 43cb39ad260a168abf6da3a48f394afff92d436b (patch) | |
tree | 0f6d3729bc472fc2958f7bd6d9d856f1a4990681 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 86c48271e0d60c82665e9fd61277002391efcef7 (diff) |
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 <mhklinux@outlook.com>
Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20250507182227.7421-3-romank@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250507182227.7421-3-romank@linux.microsoft.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions