]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/ia64/kernel/irq_lsapic.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / ia64 / kernel / irq_lsapic.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2/*
3 * LSAPIC Interrupt Controller
4 *
5 * This takes care of interrupts that are generated by the CPU's
6 * internal Streamlined Advanced Programmable Interrupt Controller
7 * (LSAPIC), such as the ITC and IPI interrupts.
8 *
9 * Copyright (C) 1999 VA Linux Systems
10 * Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
11 * Copyright (C) 2000 Hewlett-Packard Co
12 * Copyright (C) 2000 David Mosberger-Tang <davidm@hpl.hp.com>
13 */
14
15#include <linux/sched.h>
16#include <linux/irq.h>
17
18static unsigned int
5c217b60 19lsapic_noop_startup (struct irq_data *data)
1da177e4
LT
20{
21 return 0;
22}
23
24static void
5c217b60 25lsapic_noop (struct irq_data *data)
1da177e4 26{
72fdbdce 27 /* nothing to do... */
1da177e4
LT
28}
29
5c217b60 30static int lsapic_retrigger(struct irq_data *data)
c0ad90a3 31{
5c217b60 32 ia64_resend_irq(data->irq);
c0ad90a3
IM
33
34 return 1;
35}
36
fb824f48 37struct irq_chip irq_type_ia64_lsapic = {
5c217b60
TG
38 .name = "LSAPIC",
39 .irq_startup = lsapic_noop_startup,
40 .irq_shutdown = lsapic_noop,
41 .irq_enable = lsapic_noop,
42 .irq_disable = lsapic_noop,
43 .irq_ack = lsapic_noop,
44 .irq_retrigger = lsapic_retrigger,
1da177e4 45};