Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
for (i = 0; i < 10; i++) {
err = psci_ops.affinity_info(cpu_logical_map(cpu), 0);
if (err == PSCI_0_2_AFFINITY_LEVEL_OFF) {
+#ifdef CONFIG_CPUQUIET_FRAMEWORK
+ if (system_state != SYSTEM_RUNNING)
+#endif
pr_info("CPU%d killed.\n", cpu);
return 1;
}
msleep(10);
+#ifdef CONFIG_CPUQUIET_FRAMEWORK
+ if (system_state != SYSTEM_RUNNING)
+#endif
pr_info("Retrying again to check for CPU kill\n");
}
cpumask_set_cpu(cpu, mm_cpumask(mm));
set_my_cpu_offset(per_cpu_offset(smp_processor_id()));
+#ifdef CONFIG_CPUQUIET_FRAMEWORK
+ if (system_state != SYSTEM_RUNNING)
+#endif
printk("CPU%u: Booted secondary processor\n", cpu);
/*
pr_crit("CPU%u: cpu didn't die\n", cpu);
return;
}
+#ifdef CONFIG_CPUQUIET_FRAMEWORK
+ if (system_state != SYSTEM_RUNNING)
+#endif
pr_notice("CPU%u: shutdown\n", cpu);
/*