diff options
Diffstat (limited to 'arch/arm/mach-exynos/include/mach/gpufreq.h')
-rw-r--r-- | arch/arm/mach-exynos/include/mach/gpufreq.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/include/mach/gpufreq.h b/arch/arm/mach-exynos/include/mach/gpufreq.h new file mode 100644 index 0000000..3ecb393 --- /dev/null +++ b/arch/arm/mach-exynos/include/mach/gpufreq.h @@ -0,0 +1,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 + |