login
Header Space

 
 

Re: [PATCH] Rework hrtimer_nanosleep to make sys_compat_nanosleep easier

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linuxppc-dev@...>
Cc: Anton Blanchard <anton@...>, Thomas Gleixner <tglx@...>, <mingo@...>, <linux-kernel@...>
Date: Monday, October 15, 2007 - 3: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, 5:54 pm)
Re: [PATCH] Rework hrtimer_nanosleep to make sys_compat_nano..., Arnd Bergmann, (Mon Oct 15, 3:28 am)
[PATCH] Hook compat_sys_nanosleep up to high res timer code, Anton Blanchard, (Mon Oct 15, 5:13 pm)
[PATCH] Hook compat_sys_nanosleep up to high res timer code, Anton Blanchard, (Mon Oct 15, 2:43 am)
speck-geostationary