cpufreq: arm_big_little_dt: Free opp table from referenced CPU
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Fri, 17 Apr 2015 17:56:46 +0000 (02:56 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:43:18 +0000 (13:43 +0900)
commiteb81f5b3ba0282999b550d6b6e851053a8186434
treeca96d658a90bdf8e47f7cff3bb834717caf2f03c
parent07818867986d47ae49a4399cccd215975549280b
cpufreq: arm_big_little_dt: Free opp table from referenced CPU

When opp table is defined only one for each CLUSTER, opp table might
not be freed even all CPUs in CLUSTER hoplugged off unless last CPU
was referenced one. And un-freed opp table occurs annoying warning
messages when CPU hotplugged on again.

<Warning Log>
[ 2931.471956] cpu cpu4: _opp_add_dynamic: duplicate OPPs detected ~

So it fixes it to work corretly with modifying freeing procedure.
If last CPU is not the referenced one which holds opp table for CLUSTER,
it tries to find opp table from other sibling CPUs. Otherwise, it just
free itself's.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
drivers/cpufreq/arm_big_little_dt.c