[PATCH 1/2] powerpc/rtas: Create rtas_busy_sleep function

Nathan Lynch nathanl at linux.ibm.com
Tue Nov 28 00:49:44 AEDT 2023


Haren Myneni <haren at linux.ibm.com> writes:
> Move the RTAS delay sleep code to new rtas_busy_sleep(). It can
> be called from HCALL delay code that needs to support both usleep()
> or msleep() depends on delay value.

While there may be some future utility in factoring out the code that
handles extended delay statuses, your patch 2/2 isn't an appropriate use
case: VAS makes hcalls and does not interact with RTAS.

Create a separate helper function in the vas code or in the generic
hcall support code please. I think it's OK if it somewhat duplicates
logic from rtas_busy_delay().


More information about the Linuxppc-dev mailing list