Re: [PATCH] Rework hrtimer_nanosleep to make sys_compat_nanosleep easier

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnd Bergmann
Date: Monday, October 15, 2007 - 12:28 am

On Monday 15 October 2007, Anton Blanchard wrote:

Looks good, except for two micro-optimization:


Acked-by: Arnd Bergmann <arnd@arndb.de>


If it's common to call sys_nanosleep with a NULL rmtp argument, we could save a
few cycles using 

	return hrtimer_nanosleep(&tu, rmtp ? &rmp : NULL, HRTIMER_MODE_REL,
								 CLOCK_MONOTONIC);


I think it would be better here to propagate the move to a kernel *rmtp
down to sys_clock_nanosleep so we get the same optimization in
compat_sys_clock_nanosleep. That should probably also be a separate
patch. I can do one if you don't do it first.

	Arnd <><
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Hook compat_sys_nanosleep up to high res timer code, Anton Blanchard, (Sun Oct 14, 2:54 pm)
[PATCH] Hook compat_sys_nanosleep up to high res timer code, Anton Blanchard, (Sun Oct 14, 11:43 pm)
Re: [PATCH] Rework hrtimer_nanosleep to make sys_compat_na ..., Arnd Bergmann, (Mon Oct 15, 12:28 am)
[PATCH] Hook compat_sys_nanosleep up to high res timer code, Anton Blanchard, (Mon Oct 15, 2:13 pm)