#ifdef CONFIG_IRQSTACKS
DEFINE_PER_CPU(union irq_stack_union, irq_stack_union) = {
- .lock = __RAW_SPIN_LOCK_UNLOCKED((irq_stack_union).lock)
+ .lock = __ARCH_SPIN_LOCK_UNLOCKED,
};
static void execute_on_irq_stack(void *func, unsigned long param1)
{
union irq_stack_union *union_ptr;
unsigned long irq_stack;
- raw_spinlock_t *irq_stack_in_use;
+ arch_spinlock_t *irq_stack_in_use;
union_ptr = &per_cpu(irq_stack_union, smp_processor_id());
irq_stack = (unsigned long) &union_ptr->stack;
* the irq stack usage.
*/
irq_stack_in_use = &union_ptr->lock;
- if (!raw_spin_trylock(irq_stack_in_use)) {
+ if (!arch_spin_trylock(irq_stack_in_use)) {
void (*direct_call)(unsigned long p1) = func;
/* We are using the IRQ stack already.
__inc_irq_stat(irq_stack_counter);
/* free up irq stack usage. */
- do_raw_spin_unlock(irq_stack_in_use);
+ arch_spin_unlock(irq_stack_in_use);
}
asmlinkage void do_softirq(void)