]> asedeno.scripts.mit.edu Git - linux.git/commit
cpu/hotplug: Create SMT sysfs interface for all arches
authorJosh Poimboeuf <jpoimboe@redhat.com>
Wed, 27 Mar 2019 12:00:29 +0000 (07:00 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 2 Apr 2019 10:36:56 +0000 (12:36 +0200)
commitde7b77e5bb9451417ca57f1b6501da654587c048
treefd3602eff330452501e3489c865a7fc26e1bed8a
parent79a3aaa7b82e3106be97842dedfd8429248896e6
cpu/hotplug: Create SMT sysfs interface for all arches

Make the /sys/devices/system/cpu/smt/* files available on all arches, so
user space has a consistent way to detect whether SMT is enabled.

The 'control' file now shows 'notimplemented' for architectures which
don't yet have CONFIG_HOTPLUG_SMT.

[ tglx: Make notimplemented a real state ]

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jiri Kosina <jikos@kernel.org>
Link: https://lkml.kernel.org/r/469c2b98055f2c41e75748e06447d592a64080c9.1553635520.git.jpoimboe@redhat.com
Documentation/ABI/testing/sysfs-devices-system-cpu
include/linux/cpu.h
kernel/cpu.c