On Mon, 21 Mar 2016, Alex Thorlton wrote:

First of all, please use proper patch prefixes.

x86/platform/uv: ....

And please fold the documentation change into the patch which changes the
parameter.

>  static int timeout_us;
> -static int nobau;
> +static int nobau = 1;
>  static int nobau_perm;
>  static cycles_t congested_cycles;
>  
> @@ -106,13 +106,22 @@ static char *stat_description[] = {
>       "enable:   number times use of the BAU was re-enabled"
>  };
>  
> -static int __init
> -setup_nobau(char *arg)
> +static int __init setup_bau(char *arg)
>  {
> -     nobau = 1;
> +     if (!arg)
> +             return -EINVAL;
> +
> +     if (!strncmp(arg, "on", 2)) {
> +             nobau = 0;
> +             pr_info("UV BAU Enabled\n");
> +     } else if (!strncmp(arg, "off", 3)) {
> +             nobau = 1;
> +             pr_info("UV BAU Disabled\n");
> +     }
> +
>       return 0;
>  }
> -early_param("nobau", setup_nobau);
> +early_param("bau", setup_bau);

What's the value of having that extra argument?

The default is off, so we can do with a simple "bau" or "enable_bau" and be
done with it.

Thanks,

        tglx

Reply via email to