Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313512
b: refs/heads/master
c: bc89663
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed Jul 1, 2012
1 parent f9af745 commit 2a004e1
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ee8f65b5689504b98dacb6641fc8b2cc5618ad4
refs/heads/master: bc89663aa5c7ca620f58c34ab531ca409119becc
2 changes: 1 addition & 1 deletion trunk/arch/arm/include/asm/mach/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct seq_file;
/*
* This is internal. Do not use it.
*/
extern void init_FIQ(void);
extern void init_FIQ(int);
extern int show_fiq_list(struct seq_file *, int);

#ifdef CONFIG_MULTI_IRQ_HANDLER
Expand Down
9 changes: 6 additions & 3 deletions trunk/arch/arm/kernel/fiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,16 @@ void release_fiq(struct fiq_handler *f)
while (current_fiq->fiq_op(current_fiq->dev_id, 0));
}

static int fiq_start;

void enable_fiq(int fiq)
{
enable_irq(fiq + FIQ_START);
enable_irq(fiq + fiq_start);
}

void disable_fiq(int fiq)
{
disable_irq(fiq + FIQ_START);
disable_irq(fiq + fiq_start);
}

EXPORT_SYMBOL(set_fiq_handler);
Expand All @@ -140,7 +142,8 @@ EXPORT_SYMBOL(release_fiq);
EXPORT_SYMBOL(enable_fiq);
EXPORT_SYMBOL(disable_fiq);

void __init init_FIQ(void)
void __init init_FIQ(int start)
{
no_fiq_insn = *(unsigned long *)0xffff001c;
fiq_start = start;
}
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-rpc/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,6 @@ void __init rpc_init_irq(void)
}
}

init_FIQ();
init_FIQ(FIQ_START);
}

2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-mxc/avic.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void __init mxc_init_irq(void __iomem *irqbase)

#ifdef CONFIG_FIQ
/* Initialize FIQ */
init_FIQ();
init_FIQ(FIQ_START);
#endif

printk(KERN_INFO "MXC IRQ initialized\n");
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-mxc/tzic.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void __init tzic_init_irq(void __iomem *irqbase)

#ifdef CONFIG_FIQ
/* Initialize FIQ */
init_FIQ();
init_FIQ(FIQ_START);
#endif

pr_info("TrustZone Interrupt Controller (TZIC) initialized\n");
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-s3c24xx/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ void __init s3c24xx_init_irq(void)
int i;

#ifdef CONFIG_FIQ
init_FIQ();
init_FIQ(FIQ_START);
#endif

irqdbf("s3c2410_init_irq: clearing interrupt status flags\n");
Expand Down

0 comments on commit 2a004e1

Please sign in to comment.