On Thu, 23 Jan 2014, Viresh Kumar wrote:
update_flag() routine uses heap only when spread_flag_changed is true. Otherwise heap isn't used, but is allocated and freed unnecessarily.
Fix this by allocating heap only when required.
Signed-off-by: Viresh Kumar viresh.kumar@linaro.org
Acked-by: David Rientjes rientjes@google.com