]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit281eaa8cb67c27e56da1e7fd6b55c6cd3e8c4638
tree45225e66680c3cc00e419757641852fa8867c6aa
parent0c756914920fc13061222d12fbbe85990df64928
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