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 2013-02-10 22:01:36 -08:00
parent 6ca1cad28c
commit 537fbe4d7d

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.