x86/microcode/intel: Pass the microcode revision to print_ucode_info() directly
authorAshok Raj <ashok.raj@intel.com>
Mon, 9 Jan 2023 15:35:53 +0000 (07:35 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sat, 21 Jan 2023 13:55:20 +0000 (14:55 +0100)
commit174f1b909ab0984e5369a634971fb14a618ca797
treeecc222f5d0ecec5aa36fe054ff56f738af6450fd
parent6eab3abac7043226e5375e9ead0c7607ced6767b
x86/microcode/intel: Pass the microcode revision to print_ucode_info() directly

print_ucode_info() takes a struct ucode_cpu_info pointer as parameter.
Its sole purpose is to print the microcode revision.

The only available ucode_cpu_info always describes the currently loaded
microcode revision. After a microcode update is successful, this is the
new revision, or on failure it is the original revision.

In preparation for future changes, replace the struct ucode_cpu_info
pointer parameter with a plain integer which contains the revision
number and adjust the call sites accordingly.

No functional change.

  [ bp:
    - Fix + cleanup commit message.
    - Revert arbitrary, unrelated change.
  ]

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230120161923.118882-5-ashok.raj@intel.com
arch/x86/kernel/cpu/microcode/intel.c