The busfreq driver is not ready yet on 3.10 kernel. Let's comment out
the busfreq header inclusion and function calls for now, and revisit it
later when busfreq driver is ready.
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
#include <mach/viv_gpu.h>
#else
#include <linux/pm_runtime.h>
#include <mach/viv_gpu.h>
#else
#include <linux/pm_runtime.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
#include <mach/busfreq.h>
#endif
#include <mach/busfreq.h>
#endif
/* Zone used for header/footer. */
#define _GC_OBJ_ZONE gcvZONE_DRIVER
/* Zone used for header/footer. */
#define _GC_OBJ_ZONE gcvZONE_DRIVER
#ifdef CONFIG_PM
static int gpu_runtime_suspend(struct device *dev)
{
#ifdef CONFIG_PM
static int gpu_runtime_suspend(struct device *dev)
{
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
release_bus_freq(BUS_FREQ_HIGH);
release_bus_freq(BUS_FREQ_HIGH);
return 0;
}
static int gpu_runtime_resume(struct device *dev)
{
return 0;
}
static int gpu_runtime_resume(struct device *dev)
{
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
request_bus_freq(BUS_FREQ_HIGH);
request_bus_freq(BUS_FREQ_HIGH);