[PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-15 Thread Anton Blanchard
Now we have high res timers on ppc64 I thought Id test them. It turns out compat_sys_nanosleep hasnt been converted to the hrtimer code and so is limited to HZ resolution. The follow patch converts compat_sys_nanosleep to use high res timers. Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]> --

[PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-14 Thread Anton Blanchard
Now we have high res timers on ppc64 I thought Id test them. It turns out compat_sys_nanosleep hasnt been converted to the hrtimer code and so is limited to HZ resolution. The follow patch converts compat_sys_nanosleep to use high res timers. Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]> -

Re: [PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-14 Thread Thomas Gleixner
On Sun, 14 Oct 2007, Anton Blanchard wrote: > Hi Arnd, > > > The code looks correct, but I think it would be nicer to change > > hrtimer_nanosleep to take a kernel pointer and have all three > > callers (common_nsleep, sys_nanosleep and compat_sys_nanosleep) > > do the copy_to_user/put_compat_ti

Re: [PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-14 Thread Anton Blanchard
Hi Arnd, > The code looks correct, but I think it would be nicer to change > hrtimer_nanosleep to take a kernel pointer and have all three > callers (common_nsleep, sys_nanosleep and compat_sys_nanosleep) > do the copy_to_user/put_compat_timespec in the caller. Good idea, I had considered that

Re: [PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-14 Thread Arnd Bergmann
On Sunday 14 October 2007, Anton Blanchard wrote: > Now we have high res timers on ppc64 I thought Id test them. It turns > out compat_sys_nanosleep hasnt been converted to the hrtimer code and so > is limited to HZ resolution. > > The following patch makes compat_sys_nanosleep call hrtimer_nanosl

[PATCH] Hook compat_sys_nanosleep up to high res timer code

2007-10-14 Thread Anton Blanchard
Now we have high res timers on ppc64 I thought Id test them. It turns out compat_sys_nanosleep hasnt been converted to the hrtimer code and so is limited to HZ resolution. The following patch makes compat_sys_nanosleep call hrtimer_nanosleep and uses compat_alloc_user_space to avoid setting KERNE