]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: enable cpu hotplug feature for UEK4
authorAllen Pais <allen.pais@oracle.com>
Mon, 14 Nov 2016 14:23:08 +0000 (19:53 +0530)
committerAllen Pais <allen.pais@oracle.com>
Sun, 22 Jan 2017 15:37:36 +0000 (21:07 +0530)
commit17e7fa8893d493dceb16113e6526414d18437e59
treeb472adf82bebb19fba9eb410ae134970acc08335
parentea2ba6f23cc4b96136c41b19a270af2d1400f165
sparc64: enable cpu hotplug feature for UEK4

This patch provides users with an option to
disable/enable cpu at runtime by writing to
/sys/devices/system/cpu/cpuX/online field.

Eg:
$ echo [0/1] > /sys/devices/system/cpu/cpu2/online

Orabug: 24946811
Orabug: 22546196

Signed-off-by: Allen Pais <allen.pais@oracle.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
(cherry picked from commit a53c94ca8afc7a7603ff3c1154d81abb113a9e71)
arch/sparc/kernel/smp_64.c
arch/sparc/kernel/sysfs.c