mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
x86_64: Report the pending irq if available in smp_affinity
Otherwise smp_affinity would only update after the next interrupt on x86 systems. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
78b599aed6
commit
42ee2b7414
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue