summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra30_speedo.c
diff options
context:
space:
mode:
authorShardar Shariff Md <smohammed@nvidia.com>2013-10-17 12:18:18 +0530
committerShardar Mohammed <smohammed@nvidia.com>2013-10-21 06:12:39 -0700
commit7e0c0beecbdb96cf4087ad3a7f10e372a0d8e159 (patch)
treea060427716cb0a90dac5d414ed494a3bea0f959d /arch/arm/mach-tegra/tegra30_speedo.c
parentb0d979c91f815324afa2e978f805018310657b12 (diff)
arm: tegra: fuse: replace globals with functions
Replace globals tegra_sku_id, tegra_chip_id & tegra_bct_strapping with below functions u32 tegra_get_sku_id(void); u32 tegra_get_chip_id(void); u32 tegra_get_bct_strapping(void); Bug 1380004 Change-Id: I43eb2523e4af5d06bc1aa1f03c02c5168577878c Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com> Reviewed-on: http://git-master/r/300401 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra30_speedo.c')
-rw-r--r--arch/arm/mach-tegra/tegra30_speedo.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/tegra30_speedo.c b/arch/arm/mach-tegra/tegra30_speedo.c
index ca6e2b2527d5..bf61cffc81f4 100644
--- a/arch/arm/mach-tegra/tegra30_speedo.c
+++ b/arch/arm/mach-tegra/tegra30_speedo.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -307,8 +307,10 @@ void tegra30_init_speedo_data(void)
u32 cpu_speedo_val;
u32 core_speedo_val;
int i;
- int fuse_sku = tegra_sku_id;
- int new_sku = fuse_sku;
+ int fuse_sku, new_sku;
+
+ fuse_sku = tegra_get_sku_id();
+ new_sku = fuse_sku;
BUILD_BUG_ON(ARRAY_SIZE(cpu_process_speedos) !=
THRESHOLD_INDEX_COUNT);