ddrfreq && dvfs: change the notify events listened to.
authordkl <dkl@rock-chips.com>
Wed, 14 May 2014 06:05:16 +0000 (14:05 +0800)
committerdkl <dkl@rock-chips.com>
Wed, 14 May 2014 06:05:16 +0000 (14:05 +0800)
Change the notify events listened to from RK_CLK_PD_PRE_ENABLE/DISABLE
to RK_CLK_PD_PREPARE/UNPREPARE.

arch/arm/mach-rockchip/ddr_freq.c
drivers/cpufreq/rockchip-cpufreq.c

index 9c45f6a2b93f83ed4442ebba2eb1d6b91447bed6..9daf0b5833efd4db4b5903569b5861e6ac3c5013 100644 (file)
@@ -576,10 +576,10 @@ static struct input_handler ddr_freq_input_handler = {
 static int ddrfreq_clk_event(int status, unsigned long event)
 {
        switch (event) {
-       case RK_CLK_PD_PRE_ENABLE:
+       case RK_CLK_PD_PREPARE:
                ddrfreq_set_sys_status(status);
                break;
-       case RK_CLK_PD_POST_DISABLE:
+       case RK_CLK_PD_UNPREPARE:
                ddrfreq_clear_sys_status(status);
                break;
        }
index 1f40586c8c6338eecfb6c0e8566cae8570b364bf..1c686adaf2e497ff48f6bcd2313d14e2903616b5 100644 (file)
@@ -413,11 +413,11 @@ static struct notifier_block cpufreq_reboot_notifier = {
 static int clk_pd_vio_notifier_call(struct notifier_block *nb, unsigned long event, void *ptr)
 {
        switch (event) {
-       case RK_CLK_PD_PRE_ENABLE:
+       case RK_CLK_PD_PREPARE:
                if (aclk_vio1_dvfs_node)
                        clk_enable_dvfs(aclk_vio1_dvfs_node);
                break;
-       case RK_CLK_PD_POST_DISABLE:
+       case RK_CLK_PD_UNPREPARE:
                if (aclk_vio1_dvfs_node)
                        clk_disable_dvfs(aclk_vio1_dvfs_node);
                break;