Commit 349acfe2 authored by Jeff Garzik's avatar Jeff Garzik

Obvious updates to the alpha port, for recent 2.5.[123] API changes.

More changes are needed to the task struct/scheduler area before
the alpha port will boot again; this flushes the easy stuff.
parent a2236c5f
...@@ -437,7 +437,7 @@ static void srm_console_write(struct console *co, const char *s, ...@@ -437,7 +437,7 @@ static void srm_console_write(struct console *co, const char *s,
static kdev_t srm_console_device(struct console *c) static kdev_t srm_console_device(struct console *c)
{ {
/* Huh? */ /* Huh? */
return MKDEV(TTY_MAJOR, 64 + c->index); return mk_kdev(TTY_MAJOR, 64 + c->index);
} }
static int __init srm_console_setup(struct console *co, char *options) static int __init srm_console_setup(struct console *co, char *options)
......
...@@ -196,8 +196,7 @@ do_page_fault(unsigned long address, unsigned long mmcsr, ...@@ -196,8 +196,7 @@ do_page_fault(unsigned long address, unsigned long mmcsr,
*/ */
out_of_memory: out_of_memory:
if (current->pid == 1) { if (current->pid == 1) {
current->policy |= SCHED_YIELD; yield();
schedule();
down_read(&mm->mmap_sem); down_read(&mm->mmap_sem);
goto survive; goto survive;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment