Skip to content

Commit

Permalink
refreshed this entry: case.execute_value=true and no parent entry needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-lg4 committed Oct 2, 2024
1 parent 6cf79d4 commit 19ffa06
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions cpufreq_support/data_axs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"_parent_entries": [
[ "^", "byname", "tool_detector" ]
],
"_producer_rules": [

[ [ "shell_tool", "can_cpupower" ] , [["get_kernel"],["byname","tool_detector"],["detect"]], {
Expand All @@ -22,7 +19,7 @@
"desired_governor": null,
"cpupower_tool": [ "^", "byquery", "shell_tool,can_cpupower" ],

"governor_setting_pipeline": [ "^^", "case", [ [ "^^", "func", [ "all", [
"set_governor": [ "^^", "case", [ [ "^^", "func", [ "all", [
[ "^^", "get", "cpupower_tool" ],
[ "^^", "get", "desired_governor" ]
] ] ], true, [
Expand All @@ -33,10 +30,10 @@
[ "run", [], { "cmd_key": "get_policy", "capture_output": true } ],
0,
[ "func", ["ufun.rematch", "\\\"(\\w+)\\\""] ]
] ], { "default_value": [
[ "noop", "Cannot set cpufreq governor: either cpupower tool is not available on the system or desired_governor not set" ]
] }
],

"set_governor": [ "^^", "execute", [ [ "^^", "get", "governor_setting_pipeline" ] ] ]
] ], {
"default_value":
[ [ "noop", "Cannot set cpufreq governor: either cpupower tool is not available on the system or desired_governor not set" ] ],
"execute_value": true
}
]
}

0 comments on commit 19ffa06

Please sign in to comment.