Release 4.14 arch/mips/kernel/irq.c
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Code to handle x86 style IRQs plus some generic interrupt stuff.
*
* Copyright (C) 1992 Linus Torvalds
* Copyright (C) 1994 - 2000 Ralf Baechle
*/
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel_stat.h>
#include <linux/proc_fs.h>
#include <linux/mm.h>
#include <linux/random.h>
#include <linux/sched.h>
#include <linux/seq_file.h>
#include <linux/kallsyms.h>
#include <linux/kgdb.h>
#include <linux/ftrace.h>
#include <linux/atomic.h>
#include <linux/uaccess.h>
void *irq_stack[NR_CPUS];
/*
* 'what should we do if we get a hw irq event on an illegal vector'.
* each architecture has to answer this themselves.
*/
void ack_bad_irq(unsigned int irq)
{
printk("unexpected IRQ # %d\n", irq);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 16 | 100.00% | 2 | 100.00% |
Total | 16 | 100.00% | 2 | 100.00% |
atomic_t irq_err_count;
int arch_show_interrupts(struct seq_file *p, int prec)
{
seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 11 | 33.33% | 2 | 33.33% |
Linus Torvalds (pre-git) | 11 | 33.33% | 2 | 33.33% |
Thomas Gleixner | 6 | 18.18% | 1 | 16.67% |
Ralf Bächle | 5 | 15.15% | 1 | 16.67% |
Total | 33 | 100.00% | 6 | 100.00% |
asmlinkage void spurious_interrupt(void)
{
atomic_inc(&irq_err_count);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 14 | 100.00% | 2 | 100.00% |
Total | 14 | 100.00% | 2 | 100.00% |
void __init init_IRQ(void)
{
int i;
for (i = 0; i < NR_IRQS; i++)
irq_set_noprobe(i);
if (cpu_has_veic)
clear_c0_status(ST0_IM);
arch_init_irq();
for_each_possible_cpu(i) {
int irq_pages = IRQ_STACK_SIZE / PAGE_SIZE;
void *s = (void *)__get_free_pages(GFP_KERNEL, irq_pages);
irq_stack[i] = s;
pr_debug("CPU%d IRQ stack at 0x%p - 0x%p\n", i,
irq_stack[i], irq_stack[i] + IRQ_STACK_SIZE);
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Matt Redfearn | 54 | 56.84% | 1 | 12.50% |
Ralf Bächle | 28 | 29.47% | 3 | 37.50% |
Paul Burton | 9 | 9.47% | 1 | 12.50% |
Linus Torvalds | 2 | 2.11% | 1 | 12.50% |
Thomas Gleixner | 1 | 1.05% | 1 | 12.50% |
Linus Torvalds (pre-git) | 1 | 1.05% | 1 | 12.50% |
Total | 95 | 100.00% | 8 | 100.00% |
#ifdef CONFIG_DEBUG_STACKOVERFLOW
static inline void check_stack_overflow(void)
{
unsigned long sp;
__asm__ __volatile__("move %0, $sp" : "=r" (sp));
sp &= THREAD_MASK;
/*
* Check for stack overflow: is there less than STACK_WARN free?
* STACK_WARN is defined as 1/8 of THREAD_SIZE by default.
*/
if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) {
printk("do_IRQ: stack overflow: %ld\n",
sp - sizeof(struct thread_info));
dump_stack();
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
From: jiang.adam@gmail.com | 56 | 100.00% | 1 | 100.00% |
Total | 56 | 100.00% | 1 | 100.00% |
#else
static inline void check_stack_overflow(void) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
From: jiang.adam@gmail.com | 8 | 100.00% | 1 | 100.00% |
Total | 8 | 100.00% | 1 | 100.00% |
#endif
/*
* do_IRQ handles all normal device IRQ's (the special
* SMP cross-CPU interrupts have their own specific
* handlers).
*/
void __irq_entry do_IRQ(unsigned int irq)
{
irq_enter();
check_stack_overflow();
generic_handle_irq(irq);
irq_exit();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 21 | 87.50% | 1 | 50.00% |
From: jiang.adam@gmail.com | 3 | 12.50% | 1 | 50.00% |
Total | 24 | 100.00% | 2 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 76 | 24.44% | 5 | 20.83% |
From: jiang.adam@gmail.com | 73 | 23.47% | 1 | 4.17% |
Matt Redfearn | 61 | 19.61% | 1 | 4.17% |
Linus Torvalds (pre-git) | 33 | 10.61% | 7 | 29.17% |
Wu Zhangjin | 25 | 8.04% | 1 | 4.17% |
Linus Torvalds | 22 | 7.07% | 3 | 12.50% |
Paul Burton | 9 | 2.89% | 1 | 4.17% |
Thomas Gleixner | 7 | 2.25% | 2 | 8.33% |
Jason Wessel | 3 | 0.96% | 1 | 4.17% |
Arun Sharma | 1 | 0.32% | 1 | 4.17% |
James Hogan | 1 | 0.32% | 1 | 4.17% |
Total | 311 | 100.00% | 24 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.