]> xenbits.xensource.com Git - xen.git/commit
x86/ucode: Fold early_update_cache() into its single caller
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 25 Oct 2024 19:35:47 +0000 (20:35 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 6 Nov 2024 18:59:50 +0000 (18:59 +0000)
commit282bd66cee60e09e89793fb402625408f2770e3f
tree31591bab233485ed0e74d73e3c9490044349fe6e
parent59d81c89cc6b6b380158e2c6d73f415ba5337488
x86/ucode: Fold early_update_cache() into its single caller

The data pointer is known good, so the -ENOMEM path is unnecessary.  However,
if we find no patch, something's wrong seeing as early_microcode_init()
indicated it was happy.

We are the entity initialising the cache, so we don't need the complexity of
using microcode_update_cache().  Just assert the cache is empty, and populate
it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
xen/arch/x86/cpu/microcode/core.c