diff options
author | Matteo Croce <mcroce@microsoft.com> | 2020-12-16 07:47:07 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-16 09:46:19 +0300 |
commit | 40247e55ba099067bf160332365ed78b5aeb62da (patch) | |
tree | 4ac2714684eef6903256c5ed373eefa21e6526a7 /lib/error-inject.c | |
parent | 1a9d079f43e3215b81ec13d427950093b8f04c70 (diff) | |
download | linux-40247e55ba099067bf160332365ed78b5aeb62da.tar.xz |
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>
Diffstat (limited to 'lib/error-inject.c')
0 files changed, 0 insertions, 0 deletions