Re: [PATCH 2/2] reboot: hide from sysfs not applicable settings

From: Petr Mladek
Date: Tue Dec 01 2020 - 05:53:30 EST


On Mon 2020-11-30 18:37:17, Matteo Croce wrote:
> From: Matteo Croce <mcroce@xxxxxxxxxxxxx>
>
> 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.
>
> Signed-off-by: Matteo Croce <mcroce@xxxxxxxxxxxxx>

Looks good to be.

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr