rk312x, mali_400_driver : fix bug that gpu_clk could not jump to he highest level.
authorchenzhen <chenzhen@rock-chips.com>
Mon, 3 Aug 2015 03:20:05 +0000 (11:20 +0800)
committerchenzhen <chenzhen@rock-chips.com>
Mon, 3 Aug 2015 05:52:11 +0000 (13:52 +0800)
drivers/gpu/arm/mali400/mali/platform/rk30/mali_dvfs.c

index 921af61653e2bbe742c1db7947f89ac693cf03a9..0402e6dcc095a3ad0e04dc6cd50728ac691fb6c3 100755 (executable)
@@ -33,7 +33,7 @@ static void mali_dvfs_event_proc(struct work_struct *w)
        // dev_dbg(drv_data->dev, "utilisation percent = %d\n", utilisation);\r
 \r
        if (utilisation > threshold->max &&\r
-           level < drv_data->fv_info_length - 1 - 1)\r
+           level < drv_data->fv_info_length - 1 )\r
                level += 1;\r
        else if (level > 0 && utilisation < threshold->min)\r
                level -= 1;\r