]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/ia64/hp/sim/hpsim_irq.c
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
[mirror_ubuntu-artful-kernel.git] / arch / ia64 / hp / sim / hpsim_irq.c
CommitLineData
1da177e4
LT
1/*
2 * Platform dependent support for HP simulator.
3 *
4 * Copyright (C) 1998-2001 Hewlett-Packard Co
5 * Copyright (C) 1998-2001 David Mosberger-Tang <davidm@hpl.hp.com>
6 */
7
8#include <linux/init.h>
9#include <linux/kernel.h>
10#include <linux/sched.h>
11#include <linux/irq.h>
12
13static unsigned int
35d75b0e 14hpsim_irq_startup(struct irq_data *data)
1da177e4
LT
15{
16 return 0;
17}
18
19static void
35d75b0e 20hpsim_irq_noop(struct irq_data *data)
1da177e4
LT
21{
22}
23
d5dedd45 24static int
35d75b0e 25hpsim_set_affinity_noop(struct irq_data *d, const struct cpumask *b, bool f)
1da177e4 26{
d5dedd45 27 return 0;
1da177e4
LT
28}
29
fb824f48 30static struct irq_chip irq_type_hp_sim = {
35d75b0e
TG
31 .name = "hpsim",
32 .irq_startup = hpsim_irq_startup,
33 .irq_shutdown = hpsim_irq_noop,
34 .irq_enable = hpsim_irq_noop,
35 .irq_disable = hpsim_irq_noop,
36 .irq_ack = hpsim_irq_noop,
37 .irq_set_affinity = hpsim_set_affinity_noop,
1da177e4
LT
38};
39
40void __init
41hpsim_irq_init (void)
42{
1da177e4
LT
43 int i;
44
4a983ed4 45 for_each_active_irq(i) {
53c909c9 46 struct irq_chip *chip = irq_get_chip(i);
4a983ed4
TG
47
48 if (chip == &no_irq_chip)
53c909c9 49 irq_set_chip(i, &irq_type_hp_sim);
1da177e4
LT
50 }
51}