| 82 | } |
| 83 | |
| 84 | u32 ShortSpin() |
| 85 | { |
| 86 | u32 inc = PAUSE_TIME; |
| 87 | if (inc == 0) [[unlikely]] |
| 88 | { |
| 89 | UpdatePauseTime(); |
| 90 | inc = PAUSE_TIME; |
| 91 | } |
| 92 | |
| 93 | u32 time = 0; |
| 94 | // Sleep for approximately 500ns |
| 95 | for (; time < 500; time += inc) |
| 96 | MultiPause(); |
| 97 | |
| 98 | return time; |
| 99 | } |
| 100 | |
| 101 | static u32 GetSpinTime() |
| 102 | { |
no test coverage detected