Skip to content

Commit

Permalink
sh: intc: Initialize radix tree gfp mask explicitly.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Dec 24, 2010
1 parent 27f1acc commit 30f2ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/sh/intc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 30f2ba3

Please sign in to comment.