提交 e9f7ac66 编写于 作者: T Thomas Gleixner

ht: Convert to new irq_chip functions

Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Reviewed-by: NIngo Molnar <mingo@elte.hu>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
上级 5c2837fb
...@@ -3730,8 +3730,8 @@ static int set_ht_irq_affinity(unsigned int irq, const struct cpumask *mask) ...@@ -3730,8 +3730,8 @@ static int set_ht_irq_affinity(unsigned int irq, const struct cpumask *mask)
static struct irq_chip ht_irq_chip = { static struct irq_chip ht_irq_chip = {
.name = "PCI-HT", .name = "PCI-HT",
.mask = mask_ht_irq, .irq_mask = mask_ht_irq,
.unmask = unmask_ht_irq, .irq_unmask = unmask_ht_irq,
.irq_ack = ack_apic_edge, .irq_ack = ack_apic_edge,
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
.set_affinity = set_ht_irq_affinity, .set_affinity = set_ht_irq_affinity,
......
...@@ -57,28 +57,22 @@ void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg) ...@@ -57,28 +57,22 @@ void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg)
*msg = cfg->msg; *msg = cfg->msg;
} }
void mask_ht_irq(unsigned int irq) void mask_ht_irq(struct irq_data *data)
{ {
struct ht_irq_cfg *cfg; struct ht_irq_cfg *cfg = irq_data_get_irq_data(data);
struct ht_irq_msg msg; struct ht_irq_msg msg = cfg->msg;
cfg = get_irq_data(irq);
msg = cfg->msg;
msg.address_lo |= 1; msg.address_lo |= 1;
write_ht_irq_msg(irq, &msg); write_ht_irq_msg(data->irq, &msg);
} }
void unmask_ht_irq(unsigned int irq) void unmask_ht_irq(struct irq_data *data)
{ {
struct ht_irq_cfg *cfg; struct ht_irq_cfg *cfg = irq_data_get_irq_data(data);
struct ht_irq_msg msg; struct ht_irq_msg msg = cfg->msg;
cfg = get_irq_data(irq);
msg = cfg->msg;
msg.address_lo &= ~1; msg.address_lo &= ~1;
write_ht_irq_msg(irq, &msg); write_ht_irq_msg(data->irq, &msg);
} }
/** /**
......
...@@ -9,8 +9,9 @@ struct ht_irq_msg { ...@@ -9,8 +9,9 @@ struct ht_irq_msg {
/* Helper functions.. */ /* Helper functions.. */
void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg); void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg);
void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg); void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg);
void mask_ht_irq(unsigned int irq); struct irq_data;
void unmask_ht_irq(unsigned int irq); void mask_ht_irq(struct irq_data *data);
void unmask_ht_irq(struct irq_data *data);
/* The arch hook for getting things started */ /* The arch hook for getting things started */
int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev); int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册