Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62353
b: refs/heads/master
c: 42ee2b7
h: refs/heads/master
i:
  62351: 3cd8587
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jul 22, 2007
1 parent 9cbd649 commit 957f2fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 78b599aed61a1098444558e74c93745f22eda6cb
refs/heads/master: 42ee2b74140b69fa24da1c671b03c9f8019e6f62
10 changes: 9 additions & 1 deletion trunk/kernel/irq/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ static struct proc_dir_entry *root_irq_dir;
static int irq_affinity_read_proc(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
int len = cpumask_scnprintf(page, count, irq_desc[(long)data].affinity);
struct irq_desc *desc = irq_desc + (long)data;
cpumask_t *mask = &desc->affinity;
int len;

#ifdef CONFIG_GENERIC_PENDING_IRQ
if (desc->status & IRQ_MOVE_PENDING)
mask = &desc->pending_mask;
#endif
len = cpumask_scnprintf(page, count, *mask);

if (count - len < 2)
return -EINVAL;
Expand Down

0 comments on commit 957f2fa

Please sign in to comment.