rockchip:mali400:init r4p0-00rel0 for rk3036,version to 0x01
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / mali400 / mali / linux / mali_device_pause_resume.c
1 /**
2  * This confidential and proprietary software may be used only as
3  * authorised by a licensing agreement from ARM Limited
4  * (C) COPYRIGHT 2010-2013 ARM Limited
5  * ALL RIGHTS RESERVED
6  * The entire notice above must be reproduced on all authorised
7  * copies and copies may only be made to the extent permitted
8  * by a licensing agreement from ARM Limited.
9  */
10
11 /**
12  * @file mali_device_pause_resume.c
13  * Implementation of the Mali pause/resume functionality
14  */
15
16 #include <linux/module.h>
17 #include <linux/mali/mali_utgard.h>
18 #include "mali_gp_scheduler.h"
19 #include "mali_pp_scheduler.h"
20
21 void mali_dev_pause(void)
22 {
23         mali_gp_scheduler_suspend();
24         mali_pp_scheduler_suspend();
25         mali_group_power_off(MALI_FALSE);
26         mali_l2_cache_pause_all(MALI_TRUE);
27 }
28
29 EXPORT_SYMBOL(mali_dev_pause);
30
31 void mali_dev_resume(void)
32 {
33         mali_l2_cache_pause_all(MALI_FALSE);
34         mali_gp_scheduler_resume();
35         mali_pp_scheduler_resume();
36 }
37
38 EXPORT_SYMBOL(mali_dev_resume);