diff options
author | Thierry Strudel <tstrudel@google.com> | 2016-07-25 15:17:42 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-07-25 15:17:42 +0000 |
commit | 2bd44fa9390c84c929c1ca65842907e5095a724f (patch) | |
tree | ae85a93a776b4782d64d2958226c0422622703ae | |
parent | a09738fb0c0e015092e3c772a9a7d55651606d3c (diff) | |
parent | fca619e2cac830b13db9f965a068ed7d0a85f9de (diff) | |
download | v4.4-2bd44fa9390c84c929c1ca65842907e5095a724f.tar.gz |
ANDROID: cpu: send KOBJ_ONLINE event when enabling cpus
am: fca619e2ca
Change-Id: I677f01f36001ec702eb832d0c1e3855142dfdb10
-rw-r--r-- | kernel/cpu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 37731292f8a1..9ced7c751648 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -627,6 +627,7 @@ void __weak arch_enable_nonboot_cpus_end(void) void enable_nonboot_cpus(void) { int cpu, error; + struct device *cpu_device; /* Allow everyone to use the CPU hotplug again */ cpu_maps_update_begin(); @@ -644,6 +645,12 @@ void enable_nonboot_cpus(void) trace_suspend_resume(TPS("CPU_ON"), cpu, false); if (!error) { pr_info("CPU%d is up\n", cpu); + cpu_device = get_cpu_device(cpu); + if (!cpu_device) + pr_err("%s: failed to get cpu%d device\n", + __func__, cpu); + else + kobject_uevent(&cpu_device->kobj, KOBJ_ONLINE); continue; } pr_warn("Error taking CPU%d up: %d\n", cpu, error); |