pass: gov: Add setting the minimum number of online CPUs to hotplugging 41/114541/2
authorWook Song <wook16.song@samsung.com>
Tue, 14 Feb 2017 02:17:15 +0000 (11:17 +0900)
committerWook Song <wook16.song@samsung.com>
Tue, 14 Feb 2017 04:13:36 +0000 (13:13 +0900)
This patch adds the invocation of the hal interface function that sets
the minimum number of online CPUs to the function in charge of the
hotplugging feature. Since the hotplugging feature in PASS was
implemented by considering the only case that it is supported by the
standard interface of the kernel, it could not handle the case that the
hotplugging feature is separately supported by the kernel. After
applying this patch, the hotplugging feature can flexibly handle such
cases.

Change-Id: I0bbfdd586601597fdee81a0a3f185fe2d8012d9d
Signed-off-by: Wook Song <wook16.song@samsung.com>
src/pass/pass-gov.c

index 534fb042ca1d4c7e4daff83057e32586c7574e1a..cda0c61abf40ee6fcb26142f3fa08f993a7bcf9c 100644 (file)
@@ -135,6 +135,8 @@ static void pass_hotplug_set_online(struct pass_policy *policy,
        if (min_num > hotplug->num_cpus)
                min_num = hotplug->num_cpus;
 
+       pass_set_online_min_num(pass_res, min_num);
+
        for (i = 0 ; i < hotplug->num_cpus; i++) {
                if (i < min_num) {
                        pass_set_online_state(pass_res, hotplug->sequence[i],