cregit-Linux how code gets into the kernel

Release 4.14 arch/m68k/sun3/sun3ints.c

Directory: arch/m68k/sun3
/*
 * linux/arch/m68k/sun3/sun3ints.c -- Sun-3(x) Linux interrupt handling code
 *
 * 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.
 */

#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/kernel_stat.h>
#include <linux/interrupt.h>
#include <asm/segment.h>
#include <asm/intersil.h>
#include <asm/oplib.h>
#include <asm/sun3ints.h>
#include <asm/irq_regs.h>
#include <linux/seq_file.h>

extern void sun3_leds (unsigned char);


void sun3_disable_interrupts(void) { sun3_disable_irq(0); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)12100.00%1100.00%
Total12100.00%1100.00%


void sun3_enable_interrupts(void) { sun3_enable_irq(0); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)12100.00%1100.00%
Total12100.00%1100.00%

static int led_pattern[8] = { ~(0x80), ~(0x01), ~(0x40), ~(0x02), ~(0x20), ~(0x04), ~(0x10), ~(0x08) }; volatile unsigned char* sun3_intreg;
void sun3_enable_irq(unsigned int irq) { *sun3_intreg |= (1 << irq); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)18100.00%1100.00%
Total18100.00%1100.00%


void sun3_disable_irq(unsigned int irq) { *sun3_intreg &= ~(1 << irq); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)19100.00%1100.00%
Total19100.00%1100.00%


static irqreturn_t sun3_int7(int irq, void *dev_id) { unsigned int cnt; cnt = kstat_irqs_cpu(irq, 0); if (!(cnt % 2000)) sun3_leds(led_pattern[cnt % 16000 / 2000]); return IRQ_HANDLED; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2754.00%125.00%
Geert Uytterhoeven1938.00%250.00%
Linus Torvalds48.00%125.00%
Total50100.00%4100.00%


static irqreturn_t sun3_int5(int irq, void *dev_id) { unsigned int cnt; #ifdef CONFIG_SUN3 intersil_clear(); #endif sun3_disable_irq(5); sun3_enable_irq(5); #ifdef CONFIG_SUN3 intersil_clear(); #endif xtime_update(1); update_process_times(user_mode(get_irq_regs())); cnt = kstat_irqs_cpu(irq, 0); if (!(cnt % 20)) sun3_leds(led_pattern[cnt % 160 / 20]); return IRQ_HANDLED; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2932.22%111.11%
Linus Torvalds2123.33%111.11%
Geert Uytterhoeven1921.11%222.22%
Thomas Bogendoerfer1011.11%111.11%
Martin Schwidefsky77.78%111.11%
Al Viro22.22%111.11%
Torben Hohn11.11%111.11%
Atsushi Nemoto11.11%111.11%
Total90100.00%9100.00%


static irqreturn_t sun3_vec255(int irq, void *dev_id) { return IRQ_HANDLED; }

Contributors

PersonTokensPropCommitsCommitProp
Geert Uytterhoeven850.00%266.67%
Roman Zippel850.00%133.33%
Total16100.00%3100.00%


void __init sun3_init_IRQ(void) { *sun3_intreg = 1; m68k_setup_user_interrupt(VEC_USER, 128); if (request_irq(IRQ_AUTO_5, sun3_int5, 0, "clock", NULL)) pr_err("Couldn't register %s interrupt\n", "int5"); if (request_irq(IRQ_AUTO_7, sun3_int7, 0, "nmi", NULL)) pr_err("Couldn't register %s interrupt\n", "int7"); if (request_irq(IRQ_USER+127, sun3_vec255, 0, "vec255", NULL)) pr_err("Couldn't register %s interrupt\n", "vec255"); }

Contributors

PersonTokensPropCommitsCommitProp
Geert Uytterhoeven2831.82%222.22%
Roman Zippel2629.55%111.11%
Linus Torvalds2022.73%111.11%
Linus Torvalds (pre-git)1011.36%222.22%
Thomas Bogendoerfer22.27%111.11%
Al Viro11.14%111.11%
Sam Creasey11.14%111.11%
Total88100.00%9100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)21553.48%211.11%
Geert Uytterhoeven7418.41%527.78%
Linus Torvalds5012.44%211.11%
Roman Zippel348.46%15.56%
Thomas Bogendoerfer122.99%15.56%
Martin Schwidefsky71.74%15.56%
Al Viro61.49%211.11%
Sam Creasey10.25%15.56%
Torben Hohn10.25%15.56%
Adrian Bunk10.25%15.56%
Atsushi Nemoto10.25%15.56%
Total402100.00%18100.00%
Directory: arch/m68k/sun3
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.