[PATCH] Rework hrtimer_nanosleep to make sys_compat_nanosleep easier

2007-10-15 Thread Anton Blanchard
Hi, > 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); Good idea, patches updated. > I think it would be better he

Re: [PATCH] Rework hrtimer_nanosleep to make sys_compat_nanosleep easier

2007-10-15 Thread Arnd Bergmann
On Monday 15 October 2007, Anton Blanchard wrote: > Pull the copy_to_user out of hrtimer_nanosleep and into the callers > (common_nsleep, sys_nanosleep) in preparation for converting > compat_sys_nanosleep to use hrtimers. Looks good, except for two micro-optimization: > Signed-off-by: Anton Blan

[PATCH] Rework hrtimer_nanosleep to make sys_compat_nanosleep easier

2007-10-14 Thread Anton Blanchard
Hi Thomas, Thanks for the review, updates to follow. Anton -- Pull the copy_to_user out of hrtimer_nanosleep and into the callers (common_nsleep, sys_nanosleep) in preparation for converting compat_sys_nanosleep to use hrtimers. Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]> --- diff --g