]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cpuinfo: simplify locking and skip offline cpus early
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 13 Apr 2016 12:49:12 +0000 (14:49 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 May 2016 11:24:48 +0000 (13:24 +0200)
commitce754cc4c8edc959c797d1d949e0a9724219c37d
tree45225e66680c3cc00e419757641852fa8867c6aa
parent10ab7d6b15e3d714b6d627016a1bd4ed1e407930
s390/cpuinfo: simplify locking and skip offline cpus early

Move the get_online_cpus() and put_online_cpus() to the start and stop
operation of the seqfile ops. This way there is no need to lock cpu
hotplug again and again for each single cpu.

This way we can also skip offline cpus early if we simply use
cpumask_next() within the next operation.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/processor.c