Commit 14ae6296 authored by David S. Miller's avatar David S. Miller

SPARC64: Kill more cli/sti and local_irq_count/irqs_running references.

parent 1bfaf6af
......@@ -289,10 +289,6 @@ void __show_regs(struct pt_regs * regs)
: "=r" (flags)
: "i" (PSTATE_IE));
spin_lock(&regdump_lock);
printk("CPU[%d]: local_irq_count[%u] irqs_running[%d]\n",
smp_processor_id(),
local_irq_count(smp_processor_id()),
irqs_running());
#endif
printk("TSTATE: %016lx TPC: %016lx TNPC: %016lx Y: %08x %s\n", regs->tstate,
regs->tpc, regs->tnpc, regs->y, print_tainted());
......
......@@ -127,10 +127,10 @@ int prom_callback(long *args)
if (!strcmp(cmd, "sync")) {
prom_printf("PROM `%s' command...\n", cmd);
show_free_areas();
if(current->pid != 0) {
sti();
if (current->pid != 0) {
local_irq_enable();
sys_sync();
cli();
local_irq_disable();
}
args[2] = 0;
args[args[1] + 3] = -1;
......
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