Re: [tip:sched/core] sched: cpuacct: Use bigger percpu counter batch values for stats counters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip:sched/core] sched: cpuacct: Use bigger percpu counter batch values for stats counters
- From: Ingo Molnar <mingo@xxxxxxx>
- Date: Tue, 12 May 2009 12:29:39 +0200
- Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>, mingo@xxxxxxxxxx, hpa@xxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, a.p.zijlstra@xxxxxxxxx, schwidefsky@xxxxxxxxxx, balajirrao@xxxxxxxxx, dhaval@xxxxxxxxxxxxxxxxxx, bharata@xxxxxxxxxxxxxxxxxx, tglx@xxxxxxxxxxxxx, kamezawa.hiroyu@xxxxxxxxxxxxxx, linux-tip-commits@xxxxxxxxxxxxxxx
- In-reply-to: <20090512102412.GG6351@xxxxxxxxxxxxxxxxx>
- References: <20090512185836.D635.A69D9226@xxxxxxxxxxxxxx> <20090512101057.GD6351@xxxxxxxxxxxxxxxxx> <20090512191206.D63B.A69D9226@xxxxxxxxxxxxxx> <20090512102412.GG6351@xxxxxxxxxxxxxxxxx>
- User-agent: Mutt/1.5.18 (2008-05-17)
* Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:
> * KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> [2009-05-12 19:13:42]:
>
> > > > +#ifdef CONFIGCONFIG_SMP
> > > > + cpuacct_batch = jiffies_to_cputime(percpu_counter_batch);
> > > > +#endif
> > >
> > > Slow down and compile patches before sending them out.. please. That
> > > is a basic expectation if you expect it to be merged.
> >
> > Unfortunately, this mistake pass test successfully ;)
> > it because cpuacct_batch=0 works even SMP.
> >
>
> OK, BTW, using an #ifdef right in the middle of a function makes
> the code harder to read, can't we use an inline function to
> abstract out SMP?
or rather, to make cpuacct_batch have a sane value on UP too. (1?
0?)
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]