[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-b2c85fdee5b43210e934c639cb8ab7a0ca650b8d@git.kernel.org>
Date: Fri, 5 Dec 2014 15:26:23 -0800
From: tip-bot for Thomas Gleixner <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com,
jiang.liu@...ux.intel.com, bp@...en8.de, mingo@...nel.org,
joro@...tes.org, tglx@...utronix.de
Subject: [tip:x86/apic] irqdomain: Revert gfp hackery
Commit-ID: b2c85fdee5b43210e934c639cb8ab7a0ca650b8d
Gitweb: http://git.kernel.org/tip/b2c85fdee5b43210e934c639cb8ab7a0ca650b8d
Author: Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Fri, 5 Dec 2014 08:48:34 +0000
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Sat, 6 Dec 2014 00:19:25 +0100
irqdomain: Revert gfp hackery
Reverts: eda7516e1d428 'irqdomain: Correct early allocation of irq
domains with IRQs off'
Now that we distangled the allocations and the enablement of irq
remapping and removed the pointless preempt disabled region from
native_smp_prepare_cpus() we can remove that hackaround
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Tested-by: Borislav Petkov <bp@...en8.de>
Cc: Jiang Liu <jiang.liu@...ux.intel.com>
Cc: Joerg Roedel <joro@...tes.org>
Cc: x86@...nel.org
Link: http://lkml.kernel.org/r/20141205084147.393737205@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
---
kernel/irq/irqdomain.c | 21 ++-------------------
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 3395d89..7fac311 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -46,31 +46,14 @@ struct irq_domain *__irq_domain_add(struct device_node *of_node, int size,
void *host_data)
{
struct irq_domain *domain;
- gfp_t gfp_flags = GFP_KERNEL;
-
-#ifdef CONFIG_X86
- /*
- * BIG FAT COMMENT: Early initialization paths like enable_IR_x2apic(),
- * for example, call into here with interrupts disabled but then we do
- * allocate memory and can sleep so no-no. A proper fix would be to do
- * x2APIC IR setup in the early irq setup path but it is too late for
- * fixing it this way now, shortly before the merge window.
- *
- * So we do this little brown paper bag, which is temporary! Do not even
- * think of calling irq domain setup code with IRQs disabled. You will
- * get frozen-sharked!
- */
- if (irqs_disabled())
- gfp_flags = GFP_NOFS;
-#endif
domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size),
- gfp_flags, of_node_to_nid(of_node));
+ GFP_KERNEL, of_node_to_nid(of_node));
if (WARN_ON(!domain))
return NULL;
/* Fill structure */
- INIT_RADIX_TREE(&domain->revmap_tree, gfp_flags);
+ INIT_RADIX_TREE(&domain->revmap_tree, GFP_KERNEL);
domain->ops = ops;
domain->host_data = host_data;
domain->of_node = of_node_get(of_node);
--
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