Ignore:
Timestamp:
Apr 18, 2017, 8:47:31 AM (6 weeks ago)
Author:
brainslayer
Message:

update kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/arch/mips/kernel/irq.c

    r28606 r31884  
    2525#include <linux/atomic.h>
    2626#include <asm/uaccess.h>
     27
     28void *irq_stack[NR_CPUS];
    2729
    2830/*
     
    5658
    5759        arch_init_irq();
     60
     61        for_each_possible_cpu(i) {
     62                int irq_pages = IRQ_STACK_SIZE / PAGE_SIZE;
     63                void *s = (void *)__get_free_pages(GFP_KERNEL, irq_pages);
     64
     65                irq_stack[i] = s;
     66                pr_debug("CPU%d IRQ stack at 0x%p - 0x%p\n", i,
     67                        irq_stack[i], irq_stack[i] + IRQ_STACK_SIZE);
     68        }
    5869}
    5970
Note: See TracChangeset for help on using the changeset viewer.