SPU: Use usermode waiting for busy GETLLAR loop

This commit is contained in:
Eladash 2023-08-16 16:16:49 +03:00 committed by Elad Ashkenazi
parent dddd12f66b
commit 6adc7f9ee6
3 changed files with 78 additions and 1 deletions

View file

@ -358,6 +358,13 @@ bool utils::has_appropriate_um_wait()
#endif
}
// Similar to the above function but allow execution if alternatives such as yield are not wanted
bool utils::has_um_wait()
{
static const bool g_value = (has_waitx() || has_waitpkg()) && get_tsc_freq();
return g_value;
}
u32 utils::get_rep_movsb_threshold()
{
static const u32 g_value = []()