[patch] sorry: wiredswtch

1 view
Skip to first unread message

9cha...@cat-v.org

unread,
Jun 1, 2008, 8:46:06 PM6/1/08
to plan9c...@googlegroups.com
Created Jun 1 18:46 by quanstro
Processed Jun 2 00:46 by geoff

have procwired force switch to correct cpu immediately.

NOTES:
Sun Jun 1 18:45:22 EDT 2008 geoff
there's no guarantee that the proc just wired will be the next
scheduled to run.


--
/sys/src/9/port/proc.c
proc.c.orig:683,688 - /n/sources/patch/sorry/wiredswtch/proc.c:683,689

p->wired = MACHP(bm);
p->mp = p->wired;
+ sched(); /* force switch to correct cpu */
}

void

Reply all
Reply to author
Forward
0 new messages