diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-05-06 04:57:33 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-05-10 07:24:49 -0400 |
commit | 4c07a399f98278f2a784cdf71053c85a4082f4db (patch) | |
tree | 2e460162331470fbddc677d7f293472ff9134c45 /arch/s390/kernel/cache.c | |
parent | 281eaa8cb67c27e56da1e7fd6b55c6cd3e8c4638 (diff) |
s390/cache: remove superfluous locking
With "s390/cpuinfo: simplify locking and skip offline cpus early" we
prevent already that cpus will go away. The additional
get_online_cpus() / put_online_cpus() within show_cacheinfo() is not
needed anymore.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/cache.c')
-rw-r--r-- | arch/s390/kernel/cache.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/kernel/cache.c b/arch/s390/kernel/cache.c index 8ba32436effe..77a84bd78be2 100644 --- a/arch/s390/kernel/cache.c +++ b/arch/s390/kernel/cache.c | |||
@@ -72,7 +72,6 @@ void show_cacheinfo(struct seq_file *m) | |||
72 | 72 | ||
73 | if (!test_facility(34)) | 73 | if (!test_facility(34)) |
74 | return; | 74 | return; |
75 | get_online_cpus(); | ||
76 | this_cpu_ci = get_cpu_cacheinfo(cpumask_any(cpu_online_mask)); | 75 | this_cpu_ci = get_cpu_cacheinfo(cpumask_any(cpu_online_mask)); |
77 | for (idx = 0; idx < this_cpu_ci->num_leaves; idx++) { | 76 | for (idx = 0; idx < this_cpu_ci->num_leaves; idx++) { |
78 | cache = this_cpu_ci->info_list + idx; | 77 | cache = this_cpu_ci->info_list + idx; |
@@ -86,7 +85,6 @@ void show_cacheinfo(struct seq_file *m) | |||
86 | seq_printf(m, "associativity=%d", cache->ways_of_associativity); | 85 | seq_printf(m, "associativity=%d", cache->ways_of_associativity); |
87 | seq_puts(m, "\n"); | 86 | seq_puts(m, "\n"); |
88 | } | 87 | } |
89 | put_online_cpus(); | ||
90 | } | 88 | } |
91 | 89 | ||
92 | static inline enum cache_type get_cache_type(struct cache_info *ci, int level) | 90 | static inline enum cache_type get_cache_type(struct cache_info *ci, int level) |