Re: [PATCH] schedule: use unlikely()

From: Greg KH
Date: Sat Nov 25 2017 - 03:59:59 EST


On Mon, Nov 13, 2017 at 02:00:45PM -0500, Mikulas Patocka wrote:
> A small patch for schedule(), so that the code goes straght in the common
> case.
>
> Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx>

Was this a measurable difference? If so, great, please provide the
numbers and how you tested in the changelog. If it can't be measured,
then it is not worth it to add these markings as the CPU/compiler almost
always knows better.

thanks,

greg k-h