s390/topology: enable / disable topology dynamically
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 14 Sep 2017 12:42:32 +0000 (14:42 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 20 Sep 2017 11:47:55 +0000 (13:47 +0200)
commit51dce3867c6c63c7500332e5448c2ba76808d6b5
tree5d2d0902c2a4ebf9975dd0d70c54b7776dd487e8
parent1b25fda0533462c9cee3a22e8a7bea68fa670af2
s390/topology: enable / disable topology dynamically

Add a new sysctl file /proc/sys/s390/topology which displays if
topology is on (1) or off (0) as specified by the "topology=" kernel
parameter.

This allows to change topology information during runtime and
configuring it via /etc/sysctl.conf instead of using the kernel line
parameter.

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