[Xenomai-git] Philippe Gerum : cobalt: fan out tick/ns converters to proper locations
Module: xenomai-forge Branch: master Commit: ecd37b838baa35e83704f4e8e56bef0ccc75cb12 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=ecd37b838baa35e83704f4e8e56bef0ccc75cb12 Author: Philippe Gerum r...@xenomai.org Date: Wed Jul 3 12:08:55 2013 +0200 cobalt: fan out tick/ns converters to proper locations These few routines are one liners we don't want to inline, wrapping to generic arithmetic code. Duplicating them for kernel and lib/cobalt usage is saner than keeping non-inlined code in headers. --- include/cobalt/Makefile.am |1 + include/cobalt/Makefile.in |1 + include/cobalt/asm-generic/Makefile.am | 21 ++-- include/cobalt/asm-generic/Makefile.in | 19 ++-- include/cobalt/asm-generic/arith.h |5 +- include/cobalt/asm-generic/uapi/Makefile.am|4 +- include/cobalt/asm-generic/uapi/Makefile.in|4 +- include/cobalt/asm-x86/arith.h |6 +- include/cobalt/kernel/clock.h | 12 ++- include/cobalt/{asm-generic/timeconv.h = ticks.h} | 27 -- include/copperplate/clockobj.h |9 +- kernel/cobalt/arith.c |9 +-- kernel/cobalt/clock.c | 99 +++- kernel/cobalt/init.c |6 +- kernel/cobalt/pod.c|8 +- kernel/cobalt/posix/clock.c|2 +- kernel/cobalt/posix/internal.h |4 +- kernel/cobalt/posix/thread.c |2 +- kernel/cobalt/posix/timer.c|2 +- kernel/cobalt/rtdm/drvlib.c|2 +- kernel/cobalt/sched.c |6 +- kernel/cobalt/shadow.c |2 +- kernel/cobalt/timer.c | 20 ++-- kernel/drivers/ipc/internal.h |2 +- lib/cobalt/Makefile.am |1 + lib/cobalt/Makefile.in | 14 +++- lib/cobalt/clock.c |9 +- lib/cobalt/init.c |4 +- lib/cobalt/internal.c |2 - lib/cobalt/internal.h |4 + kernel/cobalt/timeconv.h = lib/cobalt/ticks.c | 58 ++-- lib/copperplate/clockobj.c |4 +- 32 files changed, 243 insertions(+), 126 deletions(-) diff --git a/include/cobalt/Makefile.am b/include/cobalt/Makefile.am index bc5f9fc..cece4eb 100644 --- a/include/cobalt/Makefile.am +++ b/include/cobalt/Makefile.am @@ -11,6 +11,7 @@ includesub_HEADERS = \ stdio.h \ stdlib.h\ syslog.h\ + ticks.h \ time.h \ trace.h \ unistd.h\ diff --git a/include/cobalt/Makefile.in b/include/cobalt/Makefile.in index d19642a..57ed864 100644 --- a/include/cobalt/Makefile.in +++ b/include/cobalt/Makefile.in @@ -322,6 +322,7 @@ includesub_HEADERS = \ stdio.h \ stdlib.h\ syslog.h\ + ticks.h \ time.h \ trace.h \ unistd.h\ diff --git a/include/cobalt/asm-generic/Makefile.am b/include/cobalt/asm-generic/Makefile.am index 8d8e9ec..6371d60 100644 --- a/include/cobalt/asm-generic/Makefile.am +++ b/include/cobalt/asm-generic/Makefile.am @@ -1,16 +1,15 @@ includesubdir = $(includedir)/asm-generic -includesub_HEADERS = \ - arith.h \ - atomic.h \ - features.h \ - machine.h \ - mayday.h \ - pci_ids.h \ - stack.h \ - syscall.h \ - thread.h \ - timeconv.h \ +includesub_HEADERS = \ + arith.h \ + atomic.h\ + features.h \ + machine.h \ + mayday.h\ + pci_ids.h \ + stack.h \ + syscall.h \ + thread.h\ wrappers.h SUBDIRS = uapi ipipe diff --git a/include/cobalt/asm-generic/Makefile.in b/include/cobalt/asm-generic/Makefile.in index 2feb1f7..73ce649 100644 --- a/include/cobalt/asm-generic/Makefile.in +++ b/include/cobalt/asm-generic/Makefile.in @@ -312,16 +312,15 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ includesubdir = $(includedir)/asm-generic includesub_HEADERS = \ - arith.h \ - atomic.h \ - features.h \ - machine.h \ - mayday.h \ - pci_ids.h \ - stack.h \ - syscall.h \ - thread.h \ - timeconv.h \ + arith.h \ + atomic.h\ + features.h \ + machine.h \ + mayday.h\ + pci_ids.h \ + stack.h \ + syscall.h \ + thread.h\ wrappers.h
[Xenomai-git] Philippe Gerum : cobalt: fan out tick/ns converters to proper locations
Module: xenomai-forge Branch: next Commit: ecd37b838baa35e83704f4e8e56bef0ccc75cb12 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=ecd37b838baa35e83704f4e8e56bef0ccc75cb12 Author: Philippe Gerum r...@xenomai.org Date: Wed Jul 3 12:08:55 2013 +0200 cobalt: fan out tick/ns converters to proper locations These few routines are one liners we don't want to inline, wrapping to generic arithmetic code. Duplicating them for kernel and lib/cobalt usage is saner than keeping non-inlined code in headers. --- include/cobalt/Makefile.am |1 + include/cobalt/Makefile.in |1 + include/cobalt/asm-generic/Makefile.am | 21 ++-- include/cobalt/asm-generic/Makefile.in | 19 ++-- include/cobalt/asm-generic/arith.h |5 +- include/cobalt/asm-generic/uapi/Makefile.am|4 +- include/cobalt/asm-generic/uapi/Makefile.in|4 +- include/cobalt/asm-x86/arith.h |6 +- include/cobalt/kernel/clock.h | 12 ++- include/cobalt/{asm-generic/timeconv.h = ticks.h} | 27 -- include/copperplate/clockobj.h |9 +- kernel/cobalt/arith.c |9 +-- kernel/cobalt/clock.c | 99 +++- kernel/cobalt/init.c |6 +- kernel/cobalt/pod.c|8 +- kernel/cobalt/posix/clock.c|2 +- kernel/cobalt/posix/internal.h |4 +- kernel/cobalt/posix/thread.c |2 +- kernel/cobalt/posix/timer.c|2 +- kernel/cobalt/rtdm/drvlib.c|2 +- kernel/cobalt/sched.c |6 +- kernel/cobalt/shadow.c |2 +- kernel/cobalt/timer.c | 20 ++-- kernel/drivers/ipc/internal.h |2 +- lib/cobalt/Makefile.am |1 + lib/cobalt/Makefile.in | 14 +++- lib/cobalt/clock.c |9 +- lib/cobalt/init.c |4 +- lib/cobalt/internal.c |2 - lib/cobalt/internal.h |4 + kernel/cobalt/timeconv.h = lib/cobalt/ticks.c | 58 ++-- lib/copperplate/clockobj.c |4 +- 32 files changed, 243 insertions(+), 126 deletions(-) diff --git a/include/cobalt/Makefile.am b/include/cobalt/Makefile.am index bc5f9fc..cece4eb 100644 --- a/include/cobalt/Makefile.am +++ b/include/cobalt/Makefile.am @@ -11,6 +11,7 @@ includesub_HEADERS = \ stdio.h \ stdlib.h\ syslog.h\ + ticks.h \ time.h \ trace.h \ unistd.h\ diff --git a/include/cobalt/Makefile.in b/include/cobalt/Makefile.in index d19642a..57ed864 100644 --- a/include/cobalt/Makefile.in +++ b/include/cobalt/Makefile.in @@ -322,6 +322,7 @@ includesub_HEADERS = \ stdio.h \ stdlib.h\ syslog.h\ + ticks.h \ time.h \ trace.h \ unistd.h\ diff --git a/include/cobalt/asm-generic/Makefile.am b/include/cobalt/asm-generic/Makefile.am index 8d8e9ec..6371d60 100644 --- a/include/cobalt/asm-generic/Makefile.am +++ b/include/cobalt/asm-generic/Makefile.am @@ -1,16 +1,15 @@ includesubdir = $(includedir)/asm-generic -includesub_HEADERS = \ - arith.h \ - atomic.h \ - features.h \ - machine.h \ - mayday.h \ - pci_ids.h \ - stack.h \ - syscall.h \ - thread.h \ - timeconv.h \ +includesub_HEADERS = \ + arith.h \ + atomic.h\ + features.h \ + machine.h \ + mayday.h\ + pci_ids.h \ + stack.h \ + syscall.h \ + thread.h\ wrappers.h SUBDIRS = uapi ipipe diff --git a/include/cobalt/asm-generic/Makefile.in b/include/cobalt/asm-generic/Makefile.in index 2feb1f7..73ce649 100644 --- a/include/cobalt/asm-generic/Makefile.in +++ b/include/cobalt/asm-generic/Makefile.in @@ -312,16 +312,15 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ includesubdir = $(includedir)/asm-generic includesub_HEADERS = \ - arith.h \ - atomic.h \ - features.h \ - machine.h \ - mayday.h \ - pci_ids.h \ - stack.h \ - syscall.h \ - thread.h \ - timeconv.h \ + arith.h \ + atomic.h\ + features.h \ + machine.h \ + mayday.h\ + pci_ids.h \ + stack.h \ + syscall.h \ + thread.h\ wrappers.h