public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4950931
)
process: flag a tiny race
author
Alan Cox
<alan@linux.intel.com>
Thu, 18 Dec 2014 00:51:12 +0000
(
00:51
+0000)
committer
Alan Cox
<alan@linux.intel.com>
Thu, 18 Dec 2014 00:51:12 +0000
(
00:51
+0000)
I think we can just remove the restore, but needs checking over
Kernel/process.c
patch
|
blob
|
history
diff --git
a/Kernel/process.c
b/Kernel/process.c
index
647a28b
..
cdebd25
100644
(file)
--- a/
Kernel/process.c
+++ b/
Kernel/process.c
@@
-40,6
+40,8
@@
void psleep(void *event)
udata.u_ptab->p_waitno = ++waitno;
nready--;
+ /* FIXME: we don't want to restore interrupts here, but what
+ is the consequence */
irqrestore(irq);
switchout(); /* Switch us out, and start another process */
/* Switchout doesn't return in this context until we have been switched back in, of course. */