Comment 5 for bug 1087149

Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :

[Chander Kashyap] wrote
cpu_hot_plug function is getting inline with new toolchain.
By exporting it we can avoid it.

This is needed to run cpu_hotplug_latency.sh script.

Signed-off-by: Chander Kashyap <email address hidden>
---
 kernel/cpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/cpu.c b/kernel/cpu.c
index e909b41..9d1f531 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -138,6 +138,7 @@ static void cpu_hotplug_begin(void) {}
 static void cpu_hotplug_done(void) {}
 #endif /* #else #if CONFIG_HOTPLUG_CPU */

+EXPORT_SYMBOL(cpu_hotplug_done);
 /* Need to know about CPUs going up/down? */
 int __ref register_cpu_notifier(struct notifier_block *nb)
 {

[naresh kamboju] wrote:
I have added this patch and following are the observations.
root@android:/ #cat /sys/kernel/debug/tracing/available_filter_functions | grep cpu_hot
cpu_hotplug_done
cpu_hotplug_begin
cpu_hotplug_disable_before_freeze
cpu_hotplug_enable_after_thaw
cpu_hotplug_pm_callback

test produced below output and hungs
root@android:/data/hotplug # sh cpu_hotplug_latency.sh
**** TEST LOADED CPU*****
**** TEST 20 *****

[ 254.715471] CPU0 packing on CPU-1
[ 254.725431] CPU1 packing on CPU-1
[ 254.735375] CPU2 packing on CPU-1
[ 254.745326] CPU3 packing on CPU-1
[ 254.755260] CPU4 packing on CPU-1
[ 254.765414] CPU0 packing on CPU2
[ 254.775100] CPU2 packing on CPU2
[ 254.784789] CPU3 packing on CPU4
[ 254.794471] CPU4 packing on CPU2
[ 254.805993] CPU1: shutdown