msm_thermal: send OFF/ONLINE uevent in hotplug cases
Send the correct uevent after setting a CPU core online or offline. This allows ueventd to set correct SELinux labels for newly created sysfs CPU device nodes. Bug: 28887345 Change-Id: If31b8529b31de9544914e27514aca571039abb60 Signed-off-by: Siqi Lin <siqilin@google.com> Signed-off-by: Thierry Strudel <tstrudel@google.com>
This commit is contained in:
parent
d15df584eb
commit
26348f7fa6
|
@ -2831,6 +2831,8 @@ static int __ref update_offline_cores(int val)
|
|||
cpu, ret);
|
||||
pend_hotplug_req = true;
|
||||
} else {
|
||||
struct device *cpu_device = get_cpu_device(cpu);
|
||||
kobject_uevent(&cpu_device->kobj, KOBJ_OFFLINE);
|
||||
pr_debug("Offlined CPU%d\n", cpu);
|
||||
}
|
||||
trace_thermal_post_core_offline(cpu,
|
||||
|
@ -2853,6 +2855,8 @@ static int __ref update_offline_cores(int val)
|
|||
"Unable to online CPU%d. err:%d\n",
|
||||
cpu, ret);
|
||||
} else {
|
||||
struct device *cpu_device = get_cpu_device(cpu);
|
||||
kobject_uevent(&cpu_device->kobj, KOBJ_ONLINE);
|
||||
pr_debug("Onlined CPU%d\n", cpu);
|
||||
}
|
||||
trace_thermal_post_core_online(cpu,
|
||||
|
|
Loading…
Reference in New Issue