Skip to contentSkip to conversation

examples/power: add turbo commands to help text

PATCH Applied Marko Kovacevic 3 participants 3 messages Oct 19, 2017 – Oct 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/power: add turbo commands to help text

From: David Hunt <[email protected]>

Fixes d191f0853378 ("examples/vm_power_manager: add per-core turbo CLI")
---
 examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +3 -2
index dc9efc2..63f711e 100644
@@ -131,8 +131,9 @@ cmdline_parse_token_string_t cmd_set_cpu_freq_cmd_cmd =
 cmdline_parse_inst_t cmd_set_cpu_freq_set = {
 	.f = cmd_set_cpu_freq_parsed,
 	.data = NULL,
-	.help_str = "set_cpu_freq <core_num> <up|down|min|max>, Set the current "
-			"frequency for the specified core by scaling up/down/min/max",
+	.help_str = "set_cpu_freq <core_num> "
+			"<up|down|min|max|enable_turbo|disable_turbo>, "
+			"adjust the frequency for the specified core.",
 	.tokens = {
 		(void *)&cmd_set_cpu_freq,
 		(void *)&cmd_set_cpu_freq_core_num,
Signature · 1 line
2.5.5
Acked-by on v1 1/1
#1 lore raw

Hi Marko,

Quoted 15 lines · Marko Kovacevic

From: David Hunt <[email protected]>

Fixes d191f0853378 ("examples/vm_power_manager: add per-core turbo CLI")
---
  examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +0 -0
index dc9efc2..63f711e 100644
@@ -131,8 +131,9 @@ cmdline_parse_token_string_t cmd_set_cpu_freq_cmd_cmd =
  cmdline_parse_inst_t cmd_set_cpu_freq_set = {

examples/vm_power_manager/guest_cli/vm_power_cli_guest.c cmdline_parse_token_string_t cmd_set_cpu_freq_cmd_cmd = · line 139

Quoted 10 lines
examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +3 -2
  	.f = cmd_set_cpu_freq_parsed,
  	.data = NULL,
-	.help_str = "set_cpu_freq <core_num> <up|down|min|max>, Set the current "
-			"frequency for the specified core by scaling up/down/min/max",
+	.help_str = "set_cpu_freq <core_num> "
+			"<up|down|min|max|enable_turbo|disable_turbo>, "
+			"adjust the frequency for the specified core.",
  	.tokens = {
  		(void *)&cmd_set_cpu_freq,
  		(void *)&cmd_set_cpu_freq_core_num,

Thanks for the patch. Looks good to me.