From 2b84fc91cafb7dbc3a1094673b2c922e026c4410 Mon Sep 17 00:00:00 2001 From: Ganbold Tsagaankhuu Date: Wed, 13 May 2015 05:46:04 +0000 Subject: [PATCH] Delete cpu_do_powersave which is set but never used/tested serving no useful purpose. Differential Revision: https://reviews.freebsd.org/D2516 Submitted by: John Wehle Reviewed by: ian@ --- sys/arm/arm/cpufunc.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sys/arm/arm/cpufunc.c b/sys/arm/arm/cpufunc.c index a3c82395124d..86906ca92123 100644 --- a/sys/arm/arm/cpufunc.c +++ b/sys/arm/arm/cpufunc.c @@ -99,8 +99,6 @@ u_int arm_cache_level; u_int arm_cache_type[14]; u_int arm_cache_loc; -/* 1 == use cpu_sleep(), 0 == don't */ -int cpu_do_powersave; int ctrl; #ifdef CPU_ARM9 @@ -838,11 +836,6 @@ set_cpufuncs() cputype = cpufunc_id(); cputype &= CPU_ID_CPU_MASK; - /* - * NOTE: cpu_do_powersave defaults to off. If we encounter a - * CPU type where we want to use it by default, then we set it. - */ - #ifdef CPU_ARM9 if (((cputype & CPU_ID_IMPLEMENTOR_MASK) == CPU_ID_ARM_LTD || (cputype & CPU_ID_IMPLEMENTOR_MASK) == CPU_ID_TI) && @@ -922,8 +915,6 @@ set_cpufuncs() get_cachetype_cp15(); pmap_pte_init_mmu_v6(); - /* Use powersave on this CPU. */ - cpu_do_powersave = 1; goto out; } #endif /* CPU_CORTEXA */ @@ -946,9 +937,6 @@ set_cpufuncs() get_cachetype_cp15(); pmap_pte_init_generic(); - /* Use powersave on this CPU. */ - cpu_do_powersave = 1; - goto out; } #endif /* CPU_FA526 */ @@ -985,9 +973,6 @@ set_cpufuncs() get_cachetype_cp15(); pmap_pte_init_xscale(); - /* Use powersave on this CPU. */ - cpu_do_powersave = 1; - goto out; } #endif /* CPU_XSCALE_PXA2X0 */