Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57a90390 authored by Michael Neuling's avatar Michael Neuling Committed by Michael Ellerman
Browse files

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: default avatarMichael Neuling <mikey@neuling.org>
Reviewed-by: default avatarStewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent affddff6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,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)