irq: change ->set_affinity() to return status
[deliverable/linux.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
14hpsim_irq_startup (unsigned int irq)
15{
16 return 0;
17}
18
19static void
20hpsim_irq_noop (unsigned int irq)
21{
22}
23
d5dedd45 24static int
0de26520 25hpsim_set_affinity_noop(unsigned int a, const struct cpumask *b)
1da177e4 26{
d5dedd45 27 return 0;
1da177e4
LT
28}
29
30static struct hw_interrupt_type irq_type_hp_sim = {
06344db3 31 .name = "hpsim",
1da177e4
LT
32 .startup = hpsim_irq_startup,
33 .shutdown = hpsim_irq_noop,
34 .enable = hpsim_irq_noop,
35 .disable = hpsim_irq_noop,
36 .ack = hpsim_irq_noop,
37 .end = hpsim_irq_noop,
38 .set_affinity = hpsim_set_affinity_noop,
39};
40
41void __init
42hpsim_irq_init (void)
43{
44 irq_desc_t *idesc;
45 int i;
46
47 for (i = 0; i < NR_IRQS; ++i) {
a8553acd
IM
48 idesc = irq_desc + i;
49 if (idesc->chip == &no_irq_type)
50 idesc->chip = &irq_type_hp_sim;
1da177e4
LT
51 }
52}
This page took 2.365889 seconds and 5 git commands to generate.