Re: [PATCH v5] x86: intel_epb: Add earlyparam option to keep bias at performance

Jack Allister
2024-01-04T09:00:40Z

> Thanks for the patch. Is auto needed over here? It was pointed in an
> earlier review that it could be an option, but it doesn't seem to serve
> a purpose.

Auto is effectively just the default as if no parameter is passed in here.
In the reply from Dave for he has mentioned that displaying it like this
may actually be clearer.

```
intel_epb= [X86]

auto (default)
```

As we're not implicitly not taking any action for this default case it
doesn't make too much sense to add in a specific strcmp case for auto,
however what I can do is add a comment within the code to explicitly show
that this is effectively a no-op when parsing.

> Maybe add an print in else here to say that unexpected value has been
> encountered for intel_epb if preserve is not seen.

I'd be hesitant to do this as we already have the pr_warn_once during the
intel_epb_restore path when defaulting from perf -> normal.