summaryrefslogtreecommitdiffstats
path: root/kernel/cpuset.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2014-05-21 15:31:05 +0200
committerSimon Horman <horms+renesas@verge.net.au>2014-06-16 19:52:00 +0900
commitedc8fb1d6ebdfc4efa009073586d3567c3368475 (patch)
tree9037a559fcb690dbf43ddd3b806e42cf5ec03341 /kernel/cpuset.c
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
ARM: shmobile: Fix device node reference leakage in shmobile_init_delay
The of_find_compatible_node() function returns a new reference to the found node. Instead of just adding of_node_put() calls, simplify the code by moving the CPU identification logic inside the loop over cpu nodes, in order to lower complexity from O(n) to O(1) by replacing of_find_compatible_node() calls with of_device_is_compatible(). Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'kernel/cpuset.c')
0 files changed, 0 insertions, 0 deletions