]> git.baikalelectronics.ru Git - kernel.git/commit
reboot: hide from sysfs not applicable settings
authorMatteo Croce <mcroce@microsoft.com>
Wed, 16 Dec 2020 04:47:07 +0000 (20:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2020 06:46:19 +0000 (22:46 -0800)
commit09b41c6cbd7d9997ee182b471f40c35cb5ed17b4
tree4ac2714684eef6903256c5ed373eefa21e6526a7
parent8988b86aaf9c853df16db11e43900cad815a5f48
reboot: hide from sysfs not applicable settings

Not all the reboot settings from both the kernel command line or sysfs
interface are available to all platforms.

Filter out reboot_type and reboot_force which are x86 only, and also
remove reboot_cpu on kernels without SMP support.

This saves some space, and avoid confusing the user with settings which
will have no effect.

Link: https://lkml.kernel.org/r/20201130173717.198952-3-mcroce@linux.microsoft.com
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/reboot.c