Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9bd7204 authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Matt Wagantall
Browse files

arm: vfp: vfpmodule.c: Make vfp suspend/resume functions non-static



They need to be called from the msm suspend resume code.

Change-Id: I75a4e8fbc4bc3b86ee1bb43445abd70aaaa6e658
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
parent 4d0e80c4
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -82,3 +82,8 @@
#define VFPOPDESC_UNUSED_BIT	(24)
#define VFPOPDESC_UNUSED_BIT	(24)
#define VFPOPDESC_UNUSED_MASK	(0xFF << VFPOPDESC_UNUSED_BIT)
#define VFPOPDESC_UNUSED_MASK	(0xFF << VFPOPDESC_UNUSED_BIT)
#define VFPOPDESC_OPDESC_MASK	(~(VFPOPDESC_LENGTH_MASK | VFPOPDESC_UNUSED_MASK))
#define VFPOPDESC_OPDESC_MASK	(~(VFPOPDESC_LENGTH_MASK | VFPOPDESC_UNUSED_MASK))

#ifndef __ASSEMBLY__
int vfp_pm_suspend(void);
void vfp_pm_resume(void);
#endif
+2 −2
Original line number Original line Diff line number Diff line
@@ -446,7 +446,7 @@ static void vfp_enable(void *unused)
}
}


#ifdef CONFIG_CPU_PM
#ifdef CONFIG_CPU_PM
static int vfp_pm_suspend(void)
int vfp_pm_suspend(void)
{
{
	struct thread_info *ti = current_thread_info();
	struct thread_info *ti = current_thread_info();
	u32 fpexc = fmrx(FPEXC);
	u32 fpexc = fmrx(FPEXC);
@@ -472,7 +472,7 @@ static int vfp_pm_suspend(void)
	return 0;
	return 0;
}
}


static void vfp_pm_resume(void)
void vfp_pm_resume(void)
{
{
	/* ensure we have access to the vfp */
	/* ensure we have access to the vfp */
	vfp_enable(NULL);
	vfp_enable(NULL);