efi: Reorder pr_notice() with add_device_randomness() call
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 8 Mar 2018 08:00:18 +0000 (08:00 +0000)
committerIngo Molnar <mingo@kernel.org>
Fri, 9 Mar 2018 07:58:23 +0000 (08:58 +0100)
commit5b4e4c3aa220d07d166d3f21f158bc9c69e3c044
tree6b3cd229014dac44f41dd272e9a738b6e070705e
parent9f66d8d73e654c5f867daa6aa186300ecaf49d3a
efi: Reorder pr_notice() with add_device_randomness() call

Currently, when we receive a random seed from the EFI stub, we call
add_device_randomness() to incorporate it into the entropy pool, and
issue a pr_notice() saying we are about to do that, e.g.,

  [    0.000000] efi:  RNG=0x87ff92cf18
  [    0.000000] random: fast init done
  [    0.000000] efi: seeding entropy pool

Let's reorder those calls to make the output look less confusing:

  [    0.000000] efi: seeding entropy pool
  [    0.000000] efi:  RNG=0x87ff92cf18
  [    0.000000] random: fast init done

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20180308080020.22828-11-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/efi.c