static void sun4u_irq_enable(unsigned int virt_irq)
{
- struct irq_handler_data *handler_data = get_irq_chip_data(virt_irq);
+ struct irq_handler_data *handler_data = get_irq_data(virt_irq);
if (likely(handler_data)) {
unsigned long cpuid, imap, val;
static int sun4u_set_affinity(unsigned int virt_irq,
const struct cpumask *mask)
{
- struct irq_handler_data *handler_data = get_irq_chip_data(virt_irq);
+ struct irq_handler_data *handler_data = get_irq_data(virt_irq);
if (likely(handler_data)) {
unsigned long cpuid, imap, val;
static void sun4u_irq_eoi(unsigned int virt_irq)
{
- struct irq_handler_data *handler_data = get_irq_chip_data(virt_irq);
+ struct irq_handler_data *handler_data = get_irq_data(virt_irq);
struct irq_desc *desc = irq_desc + virt_irq;
if (unlikely(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
static void pre_flow_handler(unsigned int virt_irq,
struct irq_desc *desc)
{
- struct irq_handler_data *handler_data = get_irq_chip_data(virt_irq);
+ struct irq_handler_data *handler_data = get_irq_data(virt_irq);
unsigned int ino = virt_irq_table[virt_irq].dev_ino;
handler_data->pre_handler(ino, handler_data->arg1, handler_data->arg2);
void (*func)(unsigned int, void *, void *),
void *arg1, void *arg2)
{
- struct irq_handler_data *handler_data = get_irq_chip_data(virt_irq);
+ struct irq_handler_data *handler_data = get_irq_data(virt_irq);
struct irq_desc *desc = irq_desc + virt_irq;
handler_data->pre_handler = func;
"IVEC");
}
- handler_data = get_irq_chip_data(virt_irq);
+ handler_data = get_irq_data(virt_irq);
if (unlikely(handler_data))
goto out;
prom_printf("IRQ: kzalloc(irq_handler_data) failed.\n");
prom_halt();
}
- set_irq_chip_data(virt_irq, handler_data);
+ set_irq_data(virt_irq, handler_data);
handler_data->imap = imap;
handler_data->iclr = iclr;
"IVEC");
}
- handler_data = get_irq_chip_data(virt_irq);
+ handler_data = get_irq_data(virt_irq);
if (unlikely(handler_data))
goto out;
prom_printf("IRQ: kzalloc(irq_handler_data) failed.\n");
prom_halt();
}
- set_irq_chip_data(virt_irq, handler_data);
+ set_irq_data(virt_irq, handler_data);
/* Catch accidental accesses to these things. IMAP/ICLR handling
* is done by hypervisor calls on sun4v platforms, not by direct
desc = irq_desc + virt_irq;
desc->status |= IRQ_NOAUTOEN;
- set_irq_chip_data(virt_irq, handler_data);
+ set_irq_data(virt_irq, handler_data);
/* Catch accidental accesses to these things. IMAP/ICLR handling
* is done by hypervisor calls on sun4v platforms, not by direct