Commit 77158a9d authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] MVME147 core local_irq*() updates

Convert core MVME147 code to new local_irq*() framework
parent eb0ea8b4
...@@ -209,10 +209,9 @@ static void scc_write (char ch) ...@@ -209,10 +209,9 @@ static void scc_write (char ch)
void m147_scc_write (struct console *co, const char *str, unsigned count) void m147_scc_write (struct console *co, const char *str, unsigned count)
{ {
unsigned long flags; unsigned long flags;
save_flags(flags); local_irq_save(flags);
cli();
while (count--) while (count--)
{ {
...@@ -220,7 +219,7 @@ void m147_scc_write (struct console *co, const char *str, unsigned count) ...@@ -220,7 +219,7 @@ void m147_scc_write (struct console *co, const char *str, unsigned count)
scc_write ('\r'); scc_write ('\r');
scc_write (*str++); scc_write (*str++);
} }
restore_flags(flags); local_irq_restore(flags);
} }
void mvme147_init_console_port (struct console *co, int cflag) void mvme147_init_console_port (struct console *co, int cflag)
......
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