Re: powerpc/powernv: Only delay opal_rtc_read() retry when necessary

2016-01-11 Thread Michael Ellerman
On Fri, 2015-18-12 at 10:46:04 UTC, Michael Neuling wrote:
> 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 
> Reviewed-by: Stewart Smith 

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/57a9039052aadf5833c40ab494

cheers
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] powerpc/powernv: Only delay opal_rtc_read() retry when necessary

2015-12-20 Thread Stewart Smith
Michael Neuling  writes:

> 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 

Reviewed-by: Stewart Smith 

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] powerpc/powernv: Only delay opal_rtc_read() retry when necessary

2015-12-18 Thread Michael Neuling
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 

diff --git a/arch/powerpc/platforms/powernv/opal-rtc.c 
b/arch/powerpc/platforms/powernv/opal-rtc.c
index 37dbee1..06511f3 100644
--- a/arch/powerpc/platforms/powernv/opal-rtc.c
+++ b/arch/powerpc/platforms/powernv/opal-rtc.c
@@ -51,7 +51,7 @@ unsigned long __init opal_get_boot_time(void)
rc = opal_rtc_read(&__y_m_d, &__h_m_s_ms);
if (rc == OPAL_BUSY_EVENT)
opal_poll_events(NULL);
-   else
+   else if (rc == OPAL_BUSY)
mdelay(10);
}
if (rc != OPAL_SUCCESS)
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev