lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 29 Aug 2009 13:58:32 GMT From: tip-bot for Yinghai Lu <yinghai@...nel.org> To: linux-tip-commits@...r.kernel.org Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com, yinghai@...nel.org, jbarnes@...tuousgeek.org, akpm@...ux-foundation.org, tglx@...utronix.de, mingo@...e.hu Subject: [tip:irq/core] irq: Make sure irq_desc for legacy irq get correct node setting Commit-ID: 372e24b0cb764ec55b4cf3408a95ae40a29e5b96 Gitweb: http://git.kernel.org/tip/372e24b0cb764ec55b4cf3408a95ae40a29e5b96 Author: Yinghai Lu <yinghai@...nel.org> AuthorDate: Wed, 26 Aug 2009 16:20:13 -0700 Committer: Ingo Molnar <mingo@...e.hu> CommitDate: Sat, 29 Aug 2009 15:53:00 +0200 irq: Make sure irq_desc for legacy irq get correct node setting when there is no ram on node 0. Signed-off-by: Yinghai Lu <yinghai@...nel.org> Cc: Andrew Morton <akpm@...ux-foundation.org> Cc: Jesse Barnes <jbarnes@...tuousgeek.org> LKML-Reference: <4A95C32D.5040605@...nel.org> Signed-off-by: Ingo Molnar <mingo@...e.hu> --- kernel/irq/handle.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 065205b..a81cf80 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -161,7 +161,7 @@ int __init early_irq_init(void) desc = irq_desc_legacy; legacy_count = ARRAY_SIZE(irq_desc_legacy); - node = first_online_node; + node = first_online_node; /* allocate irq_desc_ptrs array based on nr_irqs */ irq_desc_ptrs = kcalloc(nr_irqs, sizeof(void *), GFP_NOWAIT); @@ -172,6 +172,9 @@ int __init early_irq_init(void) for (i = 0; i < legacy_count; i++) { desc[i].irq = i; +#ifdef CONFIG_SMP + desc[i].node = node; +#endif desc[i].kstat_irqs = kstat_irqs_legacy + i * nr_cpu_ids; lockdep_set_class(&desc[i].lock, &irq_desc_lock_class); alloc_desc_masks(&desc[i], node, true); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists