[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190704121755.GM3402@hirez.programming.kicks-ass.net>
Date: Thu, 4 Jul 2019 14:17:55 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Yi Wang <wang.yi59@....com.cn>
Cc: pbonzini@...hat.com, rkrcmar@...hat.com, tglx@...utronix.de,
mingo@...hat.com, bp@...en8.de, hpa@...or.com, x86@...nel.org,
kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
xue.zhihong@....com.cn, up2wing@...il.com, wang.liang82@....com.cn
Subject: Re: [PATCH 0/2] fix likely hint of sched_info_on()
On Thu, Jul 04, 2019 at 07:46:13PM +0800, Yi Wang wrote:
> When make defconfig, CONFIG_SCHEDSTATS is set to be y, so
> sched_info_on() is 'likely' to be true. However, some functions
> invoke this function with unlikely hint or use no hint. Let's
> fix this.
How about remove the hint entirely? likely(1) is as rediculous as
unlikely(1), a constant is a constant and no amount of hinting should
make the compiler do anything else.
And if you want to retain the hint for the TASK_DELAY_ACCT nonsense,
stick it there.
Also, fix the lack of { } while you're there.
Powered by blists - more mailing lists