Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39279
b: refs/heads/master
c: 4e0fadf
h: refs/heads/master
i:
  39277: fb47073
  39275: f51c405
  39271: 010de78
  39263: 0537e9f
v: v3
  • Loading branch information
Haavard Skinnemoen authored and Linus Torvalds committed Oct 11, 2006
1 parent d1c4a78 commit 51a8bb3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 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: 41716c7c21b15e7ecf14f0caf1eef3980707fb74
refs/heads/master: 4e0fadfcf62e252d2b14de0e0927eb2830c0c28c
10 changes: 5 additions & 5 deletions trunk/arch/avr32/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ unsigned long long sched_clock(void)
*
* In UP mode, it is invoked from the (global) timer_interrupt.
*/
static void local_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static void local_timer_interrupt(int irq, void *dev_id)
{
if (current->pid)
profile_tick(CPU_PROFILING, regs);
update_process_times(user_mode(regs));
profile_tick(CPU_PROFILING);
update_process_times(user_mode(get_irq_regs()));
}

static irqreturn_t
timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
timer_interrupt(int irq, void *dev_id)
{
unsigned int count;

Expand All @@ -157,7 +157,7 @@ timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
*
* SMP is not supported yet.
*/
local_timer_interrupt(irq, dev_id, regs);
local_timer_interrupt(irq, dev_id);

return IRQ_HANDLED;
}
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/avr32/mach-at32ap/extint.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ struct irq_chip eim_chip = {
.set_type = eim_set_irq_type,
};

static void demux_eim_irq(unsigned int irq, struct irq_desc *desc,
struct pt_regs *regs)
static void demux_eim_irq(unsigned int irq, struct irq_desc *desc)
{
struct at32_sm *sm = desc->handler_data;
struct irq_desc *ext_desc;
Expand All @@ -121,7 +120,7 @@ static void demux_eim_irq(unsigned int irq, struct irq_desc *desc,

ext_irq = i + sm->eim_first_irq;
ext_desc = irq_desc + ext_irq;
ext_desc->handle_irq(ext_irq, ext_desc, regs);
ext_desc->handle_irq(ext_irq, ext_desc);
}

spin_unlock(&sm->lock);
Expand Down
7 changes: 6 additions & 1 deletion trunk/arch/avr32/mach-at32ap/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,19 @@ static struct intc intc0 = {
asmlinkage void do_IRQ(int level, struct pt_regs *regs)
{
struct irq_desc *desc;
struct pt_regs *old_regs;
unsigned int irq;
unsigned long status_reg;

local_irq_disable();

old_regs = set_irq_regs(regs);

irq_enter();

irq = intc_readl(&intc0, INTCAUSE0 - 4 * level);
desc = irq_desc + irq;
desc->handle_irq(irq, desc, regs);
desc->handle_irq(irq, desc);

/*
* Clear all interrupt level masks so that we may handle
Expand All @@ -75,6 +78,8 @@ asmlinkage void do_IRQ(int level, struct pt_regs *regs)
sysreg_write(SR, status_reg);

irq_exit();

set_irq_regs(old_regs);
}

void __init init_IRQ(void)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-avr32/irq_regs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/irq_regs.h>

0 comments on commit 51a8bb3

Please sign in to comment.