pass: cpuhp: Fix error when exiting the CPUHP module 12/172812/3
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 16 Mar 2018 04:56:48 +0000 (13:56 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 16 Mar 2018 06:19:39 +0000 (15:19 +0900)
commit92cf50aea8cbab234d79284b0a6aeec55607bef6
tree35bb602f5c27d2b7adf7dc095ee216973f466b06
parentcbc70905a1583f9e3751f64124eb89c64733a97c
pass: cpuhp: Fix error when exiting the CPUHP module

If resource configuration doesn't specify the use of CPUHP,
pass_cpuhp_init() have to be skipped. But, the commit eac3132aeb70 ("pass:
cpuhp: Replace legacy monitoring with RESMON (Resource Monitor)") didn't
handle it rightly. If CPU h/w resource doesn't use the CPUHP governor
(radiation or step cpuhp governor), have to skip the exit sequence of CPUHP.

Change-Id: I2c97873eebfa1e441807b615637786ebda5ed8b8
Fixes: eac3132aeb70 ("pass: cpuhp: Replace legacy monitoring with RESMON (Resource Monitor)
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/pass/pass-cpuhp.c