2.4-ac: more yield abstractions
Subsystems (7)
PATCH 1/1 2.4-ac: more yield abstractions
Alan,
The attached patch should replace the remaining occurrences of
current->policy |= SCHED_YIELD; schedule();
with
yield();
I missed this previously because they are in arch-dependent non-x86 code. Patch is against 2.4.19-pre7-ac4, please apply.
Robert Love
arch/alpha/mm/fault.c +1 -2
@@ -196,8 +196,7 @@*/ out_of_memory:if (current->pid ==1 ) { - current->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }
arch/arm/mm/fault-common.c +1 -2
@@ -225,8 +225,7 @@* If we are out of memory for pid1, * sleep for a while and retry */ - tsk->policy |=SCHED_YIELD ; -schedule (); +yield (); goto survive; check_stack:
arch/ia64/mm/fault.c +1 -2
@@ -196,8 +196,7 @@ out_of_memory:up_read (&mm->mmap_sem);if (current->pid ==1 ) { - current->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }
arch/m68k/mm/fault.c +1 -2
@@ -188,8 +188,7 @@ out_of_memory:up_read (&mm->mmap_sem);if (current->pid ==1 ) { - current->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }
arch/mips/mm/fault.c +1 -2
@@ -211,8 +211,7 @@ out_of_memory:up_read (&mm->mmap_sem);if (tsk->pid ==1 ) { - tsk->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }
arch/mips64/mm/fault.c +1 -2
@@ -240,8 +240,7 @@ out_of_memory:up_read (&mm->mmap_sem);if (tsk->pid ==1 ) { - tsk->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }
arch/ppc/mm/fault.c +1 -2
@@ -197,8 +197,7 @@ out_of_memory:up_read (&mm->mmap_sem);if (current->pid ==1 ) { - current->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }
arch/s390/mm/fault.c +1 -2
@@ -290,8 +290,7 @@ out_of_memory:up_read (&mm->mmap_sem);if (tsk->pid ==1 ) { - tsk->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }
arch/s390x/mm/fault.c +1 -2
@@ -290,8 +290,7 @@ out_of_memory:up_read (&mm->mmap_sem);if (tsk->pid ==1 ) { - tsk->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }
arch/sh/mm/fault.c +1 -2
@@ -207,8 +207,7 @@ out_of_memory:up_read (&mm->mmap_sem);if (current->pid ==1 ) { - current->policy |=SCHED_YIELD ; -schedule (); +yield ();down_read (&mm->mmap_sem); goto survive; }