Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54625
b: refs/heads/master
c: d2d9433
h: refs/heads/master
i:
  54623: 7968207
v: v3
  • Loading branch information
Dmitry Adamushko authored and Linus Torvalds committed May 8, 2007
1 parent a3a69ea commit bf4bb02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: c467a388ae9f236c039d4d0f4c4be07c7deebe97
refs/heads/master: d2d9433a4c84c9e7ed78d633fdbffb35d5afda17
15 changes: 11 additions & 4 deletions trunk/kernel/irq/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,19 @@ static int name_unique(unsigned int irq, struct irqaction *new_action)
{
struct irq_desc *desc = irq_desc + irq;
struct irqaction *action;
unsigned long flags;
int ret = 1;

for (action = desc->action ; action; action = action->next)
spin_lock_irqsave(&desc->lock, flags);
for (action = desc->action ; action; action = action->next) {
if ((action != new_action) && action->name &&
!strcmp(new_action->name, action->name))
return 0;
return 1;
!strcmp(new_action->name, action->name)) {
ret = 0;
break;
}
}
spin_unlock_irqrestore(&desc->lock, flags);
return ret;
}

void register_handler_proc(unsigned int irq, struct irqaction *action)
Expand Down

0 comments on commit bf4bb02

Please sign in to comment.