static void scc_console_write (struct console *co, const char *str, unsigned count) { unsigned long flags; local_irq_save(flags); while (count--) { if (*str == '\n') scc_ch_write ('\r'); scc_ch_write (*str++); } local_irq_restore(flags); }
static void scc_console_write (struct console *co, const char *str, unsigned count) { unsigned long flags; save_flags(flags); cli(); while (count--) { if (*str == '\n') scc_ch_write ('\r'); scc_ch_write (*str++); } restore_flags(flags); }