diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2014-07-09 21:04:42 +0800 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@linaro.org> | 2014-07-09 21:12:37 +0800 |
commit | 1a16de3d5779c8adb3c72672b08bce3e1585eee4 (patch) | |
tree | 490059de47cd4c4aa2b3f4f3b817c0d10f0e7a5d | |
parent | 03a5b89d39429c8581e340f8eb0d2c73c13720d2 (diff) |
remove snoop filter c codemcpm-snoop-v2
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
-rw-r--r-- | arch/arm/mach-hisi/platmcpm.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/arm/mach-hisi/platmcpm.c b/arch/arm/mach-hisi/platmcpm.c index 4415d5f9eacf..2ceb7b5206bc 100644 --- a/arch/arm/mach-hisi/platmcpm.c +++ b/arch/arm/mach-hisi/platmcpm.c @@ -78,26 +78,6 @@ static bool hip04_cluster_down(unsigned int cluster) return true; } -/* -static void hip04_set_snoop_filter(unsigned int cluster, unsigned int on) -{ - unsigned long data; - - if (!fabric) - BUG(); - data = readl_relaxed(fabric + FAB_SF_MODE); - if (on) - data |= 1 << cluster; - else - data &= ~(1 << cluster); - writel_relaxed(data, fabric + FAB_SF_MODE); - while (1) { - if (data == readl_relaxed(fabric + FAB_SF_MODE)) - break; - } -} -*/ - static int hip04_mcpm_power_up(unsigned int cpu, unsigned int cluster) { unsigned long data, mask; @@ -128,7 +108,6 @@ static int hip04_mcpm_power_up(unsigned int cpu, unsigned int cluster) data = readl_relaxed(sysctrl + \ SC_CPU_RESET_STATUS(cluster)); } while (data & mask); - //hip04_set_snoop_filter(cluster, 1); } hip04_cpu_table[cluster][cpu]++; @@ -257,7 +236,6 @@ static bool __init hip04_cpu_table_init(void) pr_err("%s: boot CPU is out of bound!\n", __func__); return false; } - //hip04_set_snoop_filter(cluster, 1); hip04_cpu_table[cluster][cpu] = 1; return true; } @@ -339,7 +317,6 @@ static int __init hip04_mcpm_init(void) return -EINVAL; ret = mcpm_platform_register(&hip04_mcpm_ops); if (!ret) { - //mcpm_sync_init(NULL); mcpm_sync_init(hip04_mcpm_power_up_setup); pr_info("HiP04 MCPM initialized\n"); } |