Messages in this thread | | | Date | Thu, 5 Jan 2023 21:33:30 +0530 | Subject | Re: [PATCH v9 09/13] cpufreq: amd-pstate: add driver working mode switch support | From | Wyes Karny <> |
| |
Hi Perry,
On 12/25/2022 10:04 PM, Perry Yuan wrote: -------------------------------->8-------------------------------- > + > +static int amd_pstate_update_status(const char *buf, size_t size) > +{ > + int ret; > + int mode_idx; > + > + if (size > 7 || size < 3) > + return -EINVAL; > + mode_idx = get_mode_idx_from_str(buf, size);
if (size > 7 || size < 6) right? because possible strings are: "disable", "passive" and "active".
-- Thanks & Regards, Wyes
| |