aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/include/mach/gpufreq.h
blob: 3ecb39335906e3e1eb9bf27893f12d4fefc1db3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 *  linux/arch/arm/mach-exynos/include/mach/gpufreq.h
 *
  *
  * Copyright (c) 2010 Samsung Electronics Co., Ltd.
  *	http://www.samsung.com
  *
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
 */

#ifdef CONFIG_CPU_EXYNOS4210
extern int mali_dvfs_bottom_lock_push(void);
extern int mali_dvfs_bottom_lock_pop(void);

static inline int exynos_gpufreq_lock(void)
{
	return mali_dvfs_bottom_lock_push();
}

static inline int exynos_gpufreq_unlock(void)
{
	return mali_dvfs_bottom_lock_pop();
}

#else
static inline int exynos_gpufreq_lock(void)
{
	return 0;
}
static inline int exynos_gpufreq_unlock(void)
{
	return 0;
}
#endif