* Naveen N. Rao wrote (on 2017-10-09 10:39:18
+):
> On 2017/10/09 08:09AM, Santosh Sivaraj wrote:
> > Current vDSO64 implementation does not have support for coarse clocks
> > (CLOCK_MONOTONIC_COARSE, CLOCK_REALTIME_COARSE), for which it falls back
> > to system
/call
clock-gettime-monotonic-coarse:vdso: 11 nsec/call
CC: Benjamin Herrenschmidt
Signed-off-by: Santosh Sivaraj
---
arch/powerpc/kernel/asm-offsets.c | 2 +
arch/powerpc/kernel/vdso64/gettimeofday.S | 67 ++-
2 files changed, 58 insertions(+), 11
* Naveen N. Rao wrote (on 2017-10-11 07:04:43
+):
> Hi Santosh,
> This seems to have gone from v4 to v6 -- did I miss v5?
Nope, this is indeed v5, a typo :-(
>
> On 2017/10/10 11:10PM, Santosh Sivaraj wrote:
> > Current vDSO64 implementation does not have support
/call
clock-gettime-monotonic-coarse:vdso: 11 nsec/call
CC: Benjamin Herrenschmidt
Signed-off-by: Santosh Sivaraj
---
Changelog:
v1:
- gettimeofday was moved from asm to C
- Coarse timer support addition
v2:
- Moved Syscall fallback from inline assembly back to its original place in
* Segher Boessenkool wrote (on 2017-10-11 17:02:16
+):
Hi Segher,
> Hi,
>
> On Wed, Oct 11, 2017 at 02:05:02PM +0530, Santosh Sivaraj wrote:
> > +70:ld r8,CFG_TB_UPDATE_COUNT(r3)
> > + andi. r0,r8,1 /* pending update ? loop *
/call
clock-gettime-monotonic-coarse:vdso: 11 nsec/call
CC: Benjamin Herrenschmidt
Reviewed-by: Naveen N. Rao
Signed-off-by: Santosh Sivaraj
---
arch/powerpc/kernel/asm-offsets.c | 2 +
arch/powerpc/kernel/vdso64/gettimeofday.S | 67 ++-
2 files changed
gt; arch/powerpc/include/asm/sections.h | 12
> arch/powerpc/kernel/module_64.c | 14 ++
> arch/powerpc/kernel/vmlinux.lds.S | 2 ++
> 4 files changed, 31 insertions(+)
>
Looks good on powerpc. If you wish:
Tested-by: Santosh Sivaraj # for powerp
Herrenschmidt
Signed-off-by: Santosh Sivaraj
---
V2 update:
- moved syscall fallback to assembly.
V3 update:
- Restored "exact prototype" comment for __kernel_clock_gettime
- Remove .hidden/.protected directives from __get_datapage to allow it to be
called
from C.
arch/powerpc/include/
* Benjamin Herrenschmidt wrote (on 2017-07-25
20:07:28 +1000):
> On Tue, 2017-07-25 at 12:26 +0530, Santosh Sivaraj wrote:
>
> > +static notrace void kernel_get_tspec(struct timespec *tp,
> > +struct vdso_data *vd
: syscall: 167 nsec/call
clock-gettime-monotonic-coarse:libc: 15 nsec/call
clock-gettime-monotonic-coarse:vdso: 11 nsec/call
CC: Benjamin Herrenschmidt
Signed-off-by: Santosh Sivaraj
---
arch/powerpc/kernel/asm-offsets.c | 2 +
arch/powerpc/kernel/vdso64/gettimeofday.S | 73
: syscall: 167 nsec/call
clock-gettime-monotonic-coarse:libc: 15 nsec/call
clock-gettime-monotonic-coarse:vdso: 11 nsec/call
CC: Benjamin Herrenschmidt
Signed-off-by: Santosh Sivaraj
---
arch/powerpc/kernel/asm-offsets.c | 2 +
arch/powerpc/kernel/vdso64/gettimeofday.S | 70
Hi all,
Any comments on the below patch?
Thanks,
Santosh
* Santosh Sivaraj wrote (on 2017-08-28 13:14:40 +0530):
> Current vDSO64 implementation does not have support for coarse clocks
> (CLOCK_MONOTONIC_COARSE, CLOCK_REALTIME_COARSE), for which it falls back
> to system call, incre
Reorganize code to make it easy to introduce CLOCK_REALTIME_COARSE and
CLOCK_MONOTONIC_COARSE timer support.
Signed-off-by: Santosh Sivaraj
---
arch/powerpc/kernel/vdso64/gettimeofday.S | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/arch/powerpc/kernel/vdso64
: syscall: 167 nsec/call
clock-gettime-monotonic-coarse:libc: 15 nsec/call
clock-gettime-monotonic-coarse:vdso: 11 nsec/call
CC: Benjamin Herrenschmidt
Signed-off-by: Santosh Sivaraj
---
arch/powerpc/kernel/asm-offsets.c | 2 ++
arch/powerpc/kernel/vdso64/gettimeofday.S | 56
201 - 214 of 214 matches
Mail list logo