Lines Matching +full:boost +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
20 {"perf-bias", required_argument, NULL, 'b'},
22 {"amd-pstate-mode", required_argument, NULL, 'm'},
23 {"turbo-boost", required_argument, NULL, 't'},
44 int mode:1; in cmd_set() member
51 char epp[30], mode[20]; in cmd_set() local
66 set_opts, NULL)) != -1) { in cmd_set()
73 printf(_("--perf-bias param out " in cmd_set()
74 "of range [0-%d]\n"), 15); in cmd_set()
84 return -EINVAL; in cmd_set()
91 if (params.mode) in cmd_set()
93 if (sscanf(optarg, "%19s", mode) != 1) { in cmd_set()
95 return -EINVAL; in cmd_set()
97 params.mode = 1; in cmd_set()
104 printf("--turbo-boost param out of range [0-1]\n"); in cmd_set()
119 if (params.mode) { in cmd_set()
120 ret = cpupower_set_amd_pstate_mode(mode); in cmd_set()
122 fprintf(stderr, "Error setting mode\n"); in cmd_set()
128 fprintf(stderr, "Error setting turbo-boost\n"); in cmd_set()
151 fprintf(stderr, _("Error setting perf-bias " in cmd_set()