Haren Myneni <ha...@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().