summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2012-01-06 08:32:21 +0800
committerAndy Green <andy.green@linaro.org>2012-01-09 11:21:35 +0800
commitfe5260fa86c5cd7ce7283d517923ff70f38a59e5 (patch)
treeb19a196f33070d91574c1b744faeebeda596e7a4
parent020b171e60e7c03f450535e5649fff633f82ebc6 (diff)
downloadpanda-fe5260fa86c5cd7ce7283d517923ff70f38a59e5.tar.gz
cleanwarnings remove spare static function from vfp
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--arch/arm/vfp/vfpmodule.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c
index 84446fe46a5..447a042efc8 100644
--- a/arch/arm/vfp/vfpmodule.c
+++ b/arch/arm/vfp/vfpmodule.c
@@ -48,31 +48,6 @@ union vfp_state *vfp_current_hw_state[NR_CPUS];
*/
unsigned int VFP_arch;
-static bool vfp_state_in_hw(unsigned int cpu, struct thread_info *thread)
-{
-#ifdef CONFIG_SMP
- if (thread->vfpstate.hard.cpu != cpu)
- return false;
-#endif
- return vfp_current_hw_state[cpu] == &thread->vfpstate;
-}
-
-/*
- * Force a reload of the VFP context from the thread structure. We do
- * this by ensuring that access to the VFP hardware is disabled, and
- * clear vfp_current_hw_state. Must be called from non-preemptible context.
- */
-static void vfp_force_reload(unsigned int cpu, struct thread_info *thread)
-{
- if (vfp_state_in_hw(cpu, thread)) {
- fmxr(FPEXC, fmrx(FPEXC) & ~FPEXC_EN);
- vfp_current_hw_state[cpu] = NULL;
- }
-#ifdef CONFIG_SMP
- thread->vfpstate.hard.cpu = NR_CPUS;
-#endif
-}
-
/*
* Per-thread VFP initialization.
*/