Re: [PATCH v2] mempolicy: reduce references to the current

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 15, 2011 at 3:08 PM, Namhyung Kim <namhyung@xxxxxxxxx> wrote:
> Remove duplicated reference to the 'current' task using a local
> variable. Since refering the current can be a burden, it'd better
> cache the reference, IMHO. At least this saves some bytes on x86_64.
>
> Â$ size mempolicy-{old,new}.o
>   text  Âdata  Âbss   dec   hex filename
> Â Â25203 Â Â2448 Â 9176 Â 36827 Â Â8fdb mempolicy-old.o
> Â Â25136 Â Â2448 Â 9184 Â 36768 Â Â8fa0 mempolicy-new.o
>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx>

-- 
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]