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

update kernels

File:
1 edited

Legend:

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

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