diff options
| author | 2026-07-08 01:21:17 +0000 | |
|---|---|---|
| committer | 2026-07-20 11:58:50 -0700 | |
| commit | cdb4d57c3e497fe99a9ffa54f085b75130b12b5a (patch) | |
| tree | 8f9c81bddbebac3185562dbcc40cd7d54608ea98 /tools/lib/python/kdoc/python_version.py | |
| parent | x86/boot/compressed/head_64.S: Clean up SEV-related comments (diff) | |
x86/apic: Ensure ICR register write value is handled as 32 bits
The low 32-bit ICR data is prepared by __prepare_ICR(), which returns a 32-bit
value. However, when this value is assigned to a new variable, it's easy to
mistakenly declare that variable with a different width.
To avoid this class of mistakes, use __prepare_ICR() directly as the function
argument instead of storing its result in an intermediate variable. This also
shaves off a bunch of lines in the code.
There should be no functionality change resulting from this.
Signed-off-by: Melody Wang <huibo.wang@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260708012117.177959-1-huibo.wang@amd.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
