Minor perf gain in __KernelNextThread.

Just like .1% but was hoping Mr. Optimizer would do this for me.
This commit is contained in:
Unknown W. Brackets committed 2013-02-11 01:27:08 -08:00
1 parent 6ca1cad28c
commit 537fbe4d7d
1 file changed
+3 -2
+3 -2
View File
@@ -1221,8 +1221,9 @@ u32 __KernelDeleteThread(SceUID threadID, int exitStatus, const char *reason, bo
Thread *__KernelNextThread() {
// If the current thread is running, it's a valid candidate.
if (__GetCurrentThread() && __GetCurrentThread()->isRunning())
__KernelChangeReadyState(currentThread, true);
Thread *cur = __GetCurrentThread();
if (cur && cur->isRunning())
__KernelChangeReadyState(cur, currentThread, true);
SceUID bestThread = -1;
// This goes in priority order.