Changeset 821 for Whitix/trunk/kernel/sched.c
- Timestamp:
- 08/06/08 14:33:26 (4 years ago)
- Files:
-
- 1 modified
-
Whitix/trunk/kernel/sched.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/kernel/sched.c
r651 r821 95 95 96 96 ListForEachEntry(curr,&threadList,list) 97 { 97 { 98 98 if (curr->quantums > c && curr->state == THR_RUNNING) 99 99 { … … 107 107 { 108 108 ListForEachEntry(curr,&threadList,list) 109 curr->quantums=curr->priority + (curr->quantums << 2);109 curr->quantums=curr->priority + (curr->quantums >> 1); 110 110 } 111 111 … … 129 129 DWORD flags; 130 130 IrqSaveFlags(flags); 131 132 #if 0 133 if (currThread && currThread->preemptCount) 134 { 135 KePrint("currThread->preemptCount = %u\n", currThread->preemptCount); 136 ModuleSymbolPrint(__builtin_return_address(0)); 137 cli(); hlt(); 138 } 139 #endif 131 140 132 141 /* See what's happening to the current thread - does it want to be freed? */ … … 143 152 current=currThread->parent; 144 153 145 /* The only threads without a parent process are kernel threads - who146 * don't need their own address space as they only manipulate kernel147 * memory, which is present in every address space.148 */154 /* The only threads without a parent process are kernel threads - who 155 * don't need their own address space as they only manipulate kernel 156 * memory, which is present in every address space. 157 */ 149 158 150 159 if (current)
