forked from genodelabs/genode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tool: use bender hwp options also for foc and seL4
Issue genodelabs#5406
- Loading branch information
Showing
5 changed files
with
36 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Return Bender option that configures Bender's Intel HWP plugin | ||
# | ||
# \param --bender-intel-hwp-mode Run the Intel HWP plugin of Bender in the | ||
# given mode. Valid argument values are | ||
# "off", | ||
# "performance", | ||
# "balanced", and | ||
# "power_saving" | ||
# The argument value defaults to | ||
# "performance". | ||
# | ||
proc bender_intel_hwp_mode_option { } { | ||
|
||
set opt [get_cmd_arg_first --bender-intel-hwp-mode "performance"] | ||
if {$opt == "off"} { | ||
return "intel_hwp_off" | ||
} elseif {$opt == "performance"} { | ||
return "intel_hwp_performance" | ||
} elseif {$opt == "balanced"} { | ||
return "intel_hwp_balanced" | ||
} elseif {$opt == "power_saving"} { | ||
return "intel_hwp_power_saving" | ||
} else { | ||
return "intel_hwp_performance" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters