[Skiboot] [PATCH] wait_for_resource_loaded: don't needlessly sleep for 5ms

Stewart Smith stewart at linux.vnet.ibm.com
Thu Nov 24 17:11:17 AEDT 2016


Stewart Smith <stewart at linux.vnet.ibm.com> writes:

> We would needlessly time_wait_ms_nopoll(5) if opal_run_pollers()
> managed to crank things enough to load the requested resource.
>
> Instead of needlessly sleeping, check the result of resource_loaded()
> *before* going to sleep for a bit.
>
> Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>

Merged to master as of 2981a7bfc9dc3b1b642a868b09a75d011c49063a

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list