From 19554876c1af524759e5c093544d52766737e2fe Mon Sep 17 00:00:00 2001 From: LeTama Date: Fri, 17 Sep 2010 11:19:14 +0200 Subject: [PATCH] Revert "htcleo: removed perlock and add some defconfig changes from Evo." This reverts commit a494e9d8abd15f83dbb5fc2745d29ebb53a0c333. config changes don't match Kconfig and are not compiled in. perflock looks fine, to be confirmed. --- arch/arm/configs/htcleo_defconfig | 34 ++++++++++++++++++------------- arch/arm/mach-msm/board-htcleo.c | 14 ++++++++++++- 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/arch/arm/configs/htcleo_defconfig b/arch/arm/configs/htcleo_defconfig index 61ce085b..014a4b6f 100644 --- a/arch/arm/configs/htcleo_defconfig +++ b/arch/arm/configs/htcleo_defconfig @@ -43,11 +43,12 @@ CONFIG_SWAP=y # # RCU Subsystem # -CONFIG_CLASSIC_RCU=y -# CONFIG_TREE_RCU is not set -# CONFIG_PREEMPT_RCU is not set +CONFIG_TREE_RCU=y +# CONFIG_TREE_PREEMPT_RCU is not set +# CONFIG_RCU_TRACE is not set +CONFIG_RCU_FANOUT=32 +# CONFIG_RCU_FANOUT_EXACT is not set # CONFIG_TREE_RCU_TRACE is not set -# CONFIG_PREEMPT_RCU_TRACE is not set CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=20 @@ -135,14 +136,14 @@ CONFIG_LBDAF=y # IO Schedulers # CONFIG_IOSCHED_NOOP=y -CONFIG_IOSCHED_AS=y -CONFIG_IOSCHED_DEADLINE=y -# CONFIG_IOSCHED_CFQ is not set +# CONFIG_IOSCHED_AS is not set +# CONFIG_IOSCHED_DEADLINE is not set +CONFIG_IOSCHED_CFQ=y # CONFIG_DEFAULT_AS is not set -CONFIG_DEFAULT_DEADLINE=y -# CONFIG_DEFAULT_CFQ is not set +# CONFIG_DEFAULT_DEADLINE is not set +CONFIG_DEFAULT_CFQ=y # CONFIG_DEFAULT_NOOP is not set -CONFIG_DEFAULT_IOSCHED="deadline" +CONFIG_DEFAULT_IOSCHED="cfq" CONFIG_FREEZER=y # @@ -200,8 +201,8 @@ CONFIG_ARCH_MSM=y CONFIG_ARCH_QSD8X50=y CONFIG_ARCH_MSM_SCORPION=y CONFIG_MSM_MDP31=y -# CONFIG_PERFLOCK is not set -# CONFIG_PERFLOCK_BOOT_LOCK is not set +CONFIG_PERFLOCK=y +CONFIG_PERFLOCK_BOOT_LOCK=y # CONFIG_PERFLOCK_SCREEN_POLICY is not set CONFIG_MSM_AMSS_VERSION=1550 # CONFIG_MSM_AMSS_VERSION_6210 is not set @@ -321,6 +322,7 @@ CONFIG_CPU_CACHE_V7=y CONFIG_CPU_CACHE_VIPT=y CONFIG_CPU_COPY_V6=y CONFIG_CPU_TLB_V7=y +CONFIG_VERIFY_PERMISSION_FAULT=y CONFIG_CPU_HAS_ASID=y CONFIG_CPU_CP15=y CONFIG_CPU_CP15_MMU=y @@ -334,7 +336,7 @@ CONFIG_ARM_THUMBEE=y # CONFIG_CPU_DCACHE_DISABLE is not set # CONFIG_CPU_BPREDICT_DISABLE is not set CONFIG_HAS_TLS_REG=y -# CONFIG_ARM_L1_CACHE_SHIFT is not set +CONFIG_ARM_L1_CACHE_SHIFT=5 # CONFIG_ARM_ERRATA_430973 is not set # CONFIG_ARM_ERRATA_458693 is not set # CONFIG_ARM_ERRATA_460075 is not set @@ -357,8 +359,11 @@ CONFIG_VMSPLIT_3G=y # CONFIG_VMSPLIT_2G is not set # CONFIG_VMSPLIT_1G is not set CONFIG_PAGE_OFFSET=0xC0000000 +# CONFIG_PREEMPT_NONE is not set +# CONFIG_PREEMPT_VOLUNTARY is not set CONFIG_PREEMPT=y CONFIG_HZ=100 +# CONFIG_THUMB2_KERNEL is not set CONFIG_AEABI=y # CONFIG_OABI_COMPAT is not set # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set @@ -376,6 +381,7 @@ CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_SPLIT_PTLOCK_CPUS=4 # CONFIG_PHYS_ADDR_T_64BIT is not set CONFIG_ZONE_DMA_FLAG=0 +CONFIG_BOUNCE=y CONFIG_VIRT_TO_BUS=y CONFIG_HAVE_MLOCK=y CONFIG_HAVE_MLOCKED_PAGE_BIT=y @@ -439,7 +445,7 @@ CONFIG_PM=y CONFIG_PM_DEBUG=y CONFIG_PM_VERBOSE=y CONFIG_CAN_PM_TRACE=y -CONFIG_PM_TRACEU=y +# CONFIG_PM_TRACE is not set CONFIG_PM_SLEEP=y CONFIG_SUSPEND=y # CONFIG_PM_TEST_SUSPEND is not set diff --git a/arch/arm/mach-msm/board-htcleo.c b/arch/arm/mach-msm/board-htcleo.c index 496f4a89..cb752346 100644 --- a/arch/arm/mach-msm/board-htcleo.c +++ b/arch/arm/mach-msm/board-htcleo.c @@ -212,7 +212,7 @@ static struct microp_i2c_platform_data microp_data = { static struct i2c_board_info base_i2c_devices[] = { - { + { I2C_BOARD_INFO("htcleo-battery", 0x26), }, { @@ -713,6 +713,16 @@ static struct msm_acpu_clock_platform_data htcleo_clock_data = { // .wait_for_irq_khz = 19200, // TCXO }; +static unsigned htcleo_perf_acpu_table[] = { + 245000000, + 576000000, + 998400000, +}; + +static struct perflock_platform_data htcleo_perflock_data = { + .perf_acpu_table = htcleo_perf_acpu_table, + .table_size = ARRAY_SIZE(htcleo_perf_acpu_table), +}; /////////////////////////////////////////////////////////////////////// // Reset /////////////////////////////////////////////////////////////////////// @@ -746,6 +756,8 @@ static void __init htcleo_init(void) msm_acpu_clock_init(&htcleo_clock_data); + perflock_init(&htcleo_perflock_data); + init_dex_comm(); /* set the gpu power rail to manual mode so clk en/dis will not