Re: [PATCH] sched: Make schedstats a runtime tunable that is disabled by default
From: Mel Gorman
Date: Mon Jan 25 2016 - 11:46:40 EST
On Mon, Jan 25, 2016 at 03:29:08PM +0000, Matt Fleming wrote:
> On Mon, 25 Jan, at 10:05:31AM, Mel Gorman wrote:
> > +static int __init setup_schedstats(char *str)
> > +{
> > + int ret = 0;
> > + if (!str)
> > + goto out;
> > +
> > + if (!strcmp(str, "enable")) {
> > + set_schedstats(true);
> > + ret = 1;
> > + } else if (!strcmp(str, "disable")) {
> > + set_schedstats(false);
> > + ret = 1;
> > + }
> > +out:
> > + if (!ret)
> > + pr_warn("Unable to parse numa_balancing=\n");
> > +
>
> Copy+paste error?
Yes.
--
Mel Gorman
SUSE Labs