mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
irqchip: mips-gic: Use GIC_SH_WEDGE_{SET,CLR} macros
Use the GIC_SH_WEDGE_{SET,CLR} macros provided by mips-gic.h.
Signed-off-by: Andrew Bresticker <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Qais Yousef <[email protected]>
Cc: John Crispin <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/8134/
Signed-off-by: Ralf Baechle <[email protected]>
This commit is contained in:
parent
8f5ee79c92
commit
53a7bc815a
1 changed files with 2 additions and 2 deletions
|
|
@ -206,7 +206,7 @@ static void gic_bind_eic_interrupt(int irq, int set)
|
|||
|
||||
void gic_send_ipi(unsigned int intr)
|
||||
{
|
||||
gic_write(GIC_REG(SHARED, GIC_SH_WEDGE), 0x80000000 | intr);
|
||||
gic_write(GIC_REG(SHARED, GIC_SH_WEDGE), GIC_SH_WEDGE_SET(intr));
|
||||
}
|
||||
|
||||
int gic_get_c0_compare_int(void)
|
||||
|
|
@ -270,7 +270,7 @@ static void gic_ack_irq(struct irq_data *d)
|
|||
{
|
||||
unsigned int irq = GIC_HWIRQ_TO_SHARED(d->hwirq);
|
||||
|
||||
gic_write(GIC_REG(SHARED, GIC_SH_WEDGE), irq);
|
||||
gic_write(GIC_REG(SHARED, GIC_SH_WEDGE), GIC_SH_WEDGE_CLR(irq));
|
||||
}
|
||||
|
||||
static int gic_set_type(struct irq_data *d, unsigned int type)
|
||||
|
|
|
|||
Loading…
Reference in a new issue