]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/powernv: Only delay opal_rtc_read() retry when necessary
authorMichael Neuling <mikey@neuling.org>
Fri, 18 Dec 2015 10:46:04 +0000 (21:46 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 27 Dec 2015 08:12:40 +0000 (19:12 +1100)
commit57a9039052aadf5833c40ab494d30d3755660a48
tree13586b329f4289956894efa3cbe43d484bbc35ff
parentaffddff69c55eb68969448f35f59054a370bc7c1
powerpc/powernv: Only delay opal_rtc_read() retry when necessary

Only delay opal_rtc_read() when busy and are going to retry.

This has the advantage of possibly saving a massive 10ms off booting!

Kudos to Stewart for noticing.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Reviewed-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-rtc.c