Skip to contentSkip to conversation

reboot: sync documentation with current code

PATCH In review Matteo Croce 1 participant 2 messages Nov 13, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reboot: sync documentation with current code

From: Matteo Croce <[email protected]>

The valid values accepted by /sys/kernel/reboot/type are a bit different that the ones used in the kernel command line.

In /sys we supports 'cf9_force' and 'cf9_safe', while in the kernel command line 'pci' and 'q' are used.

Document the right values in the sysfs documentation.

Fixes eab8da48579d ("reboot: allow to specify reboot mode via sysfs")
---
 Documentation/ABI/testing/sysfs-kernel-reboot | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-kernel-reboot +2 -1
index 837330fb2511..fcc5d193c16c 100644
@@ -16,7 +16,8 @@ What:		/sys/kernel/reboot/type
 Date:		November 2020
 KernelVersion:	5.11
 Contact:	Matteo Croce <[email protected]>
-Description:	Reboot type. Valid values are: bios acpi kbd triple efi pci
+Description:	Reboot type. Valid values are:
+		bios acpi kbd triple efi cf9_force cf9_safe
 
 What:		/sys/kernel/reboot/cpu
 Date:		November 2020
Signature · 1 line
2.28.0
#1 lore raw
Quoted 32 lines · Matteo Croce

From: Matteo Croce <[email protected]>

The valid values accepted by /sys/kernel/reboot/type are a bit different that the ones used in the kernel command line.

In /sys we supports 'cf9_force' and 'cf9_safe', while in the kernel command line 'pci' and 'q' are used.

Document the right values in the sysfs documentation.

Fixes eab8da48579d ("reboot: allow to specify reboot mode via sysfs")
---
 Documentation/ABI/testing/sysfs-kernel-reboot | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-kernel-reboot +2 -2
index 837330fb2511..fcc5d193c16c 100644
@@ -16,7 +16,8 @@ What:         /sys/kernel/reboot/type
 Date:          November 2020
 KernelVersion: 5.11
 Contact:       Matteo Croce <[email protected]>
-Description:   Reboot type. Valid values are: bios acpi kbd triple efi pci
+Description:   Reboot type. Valid values are:
+               bios acpi kbd triple efi cf9_force cf9_safe
 
 What:          /sys/kernel/reboot/cpu
 Date:          November 2020
--
Quoted 2 lines

2.28.0

So, discard this one, I will rename 'cf9_force' to 'pci' instead. Simpler, and coherent with the kernel cmdline.

Signature · 1 line
per aspera ad upstream