In prior chips, only big cluster supports CPD(Cluster Power Down),
therefore, big_reset_control() is called in cluster_enable/disable
function. It should be changed to consider cluster.
Change-Id: I75a50df68a44aceabb41b06fd9d66cb65aaf7de2
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
/******************************************************************************
* CAL interfaces *
******************************************************************************/
+#ifdef CONFIG_EXYNOS_REBOOT
+extern void big_reset_control(int en);
+#else
+static inline void big_reset_control(int en) { }
+#endif
+
static void cpu_enable(unsigned int cpu)
{
cal_cpu_enable(cpu);
static void cluster_enable(unsigned int cluster_id)
{
cal_cluster_enable(cluster_id);
+ big_reset_control(1);
}
static void cluster_disable(unsigned int cluster_id)
{
+ big_reset_control(0);
cal_cluster_disable(cluster_id);
}