summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-12-24 19:38:37 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-12-24 19:38:37 +0900
commit30f2ba38011247ad95bffbf0743a0dc0656a5eb7 (patch)
tree23e769c0e25c86c7f90837e328baf1d10ebd85a4 /drivers
parent27f1acccd4d310e941d2e879445324595e2fe463 (diff)
downloadop-kernel-dev-30f2ba38011247ad95bffbf0743a0dc0656a5eb7.zip
op-kernel-dev-30f2ba38011247ad95bffbf0743a0dc0656a5eb7.tar.gz
sh: intc: Initialize radix tree gfp mask explicitly.
Presently the root node is initialized by way of kzalloc on the parent data structure, which by chance happens to do the bulk of what an explicit initialization does with GFP_NOWAIT semantics. This however is more by luck than by design, and as we ideally want to permit radix node allocations access to the emergency pools anyways, add in the proper initializer with the desired mask. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/sh/intc/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/sh/intc/core.c b/drivers/sh/intc/core.c
index e5e9e67..9739431 100644
--- a/drivers/sh/intc/core.c
+++ b/drivers/sh/intc/core.c
@@ -198,6 +198,7 @@ int __init register_intc_controller(struct intc_desc *desc)
list_add_tail(&d->list, &intc_list);
raw_spin_lock_init(&d->lock);
+ INIT_RADIX_TREE(&d->tree, GFP_ATOMIC);
d->index = nr_intc_controllers;
OpenPOWER on IntegriCloud