[Xenomai-git] Philippe Gerum : cobalt/timer: fix build issue w/ CONFIG_SMP off
Module: xenomai-3 Branch: stable-3.0.x Commit: 15620f7d298889ac6ba9da11ea1bbf70b6065e94 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=15620f7d298889ac6ba9da11ea1bbf70b6065e94 Author: Philippe Gerum Date: Sat Nov 19 11:14:55 2016 +0100 cobalt/timer: fix build issue w/ CONFIG_SMP off --- include/cobalt/kernel/timer.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/cobalt/kernel/timer.h b/include/cobalt/kernel/timer.h index 86ac7a7..3c75354 100644 --- a/include/cobalt/kernel/timer.h +++ b/include/cobalt/kernel/timer.h @@ -522,6 +522,9 @@ int xntimer_setup_ipi(void); void xntimer_release_ipi(void); +bool xntimer_set_sched(struct xntimer *timer, + struct xnsched *sched); + #else /* ! CONFIG_SMP */ static inline void xntimer_migrate(struct xntimer *timer, @@ -535,10 +538,13 @@ static inline int xntimer_setup_ipi(void) static inline void xntimer_release_ipi(void) { } -#endif /* CONFIG_SMP */ +static inline bool xntimer_set_sched(struct xntimer *timer, +struct xnsched *sched) +{ + return true; +} -bool xntimer_set_sched(struct xntimer *timer, - struct xnsched *sched); +#endif /* CONFIG_SMP */ char *xntimer_format_time(xnticks_t ns, char *buf, size_t bufsz); ___ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : cobalt/timer: fix build issue w/ CONFIG_SMP off
Module: xenomai-3 Branch: next Commit: 15620f7d298889ac6ba9da11ea1bbf70b6065e94 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=15620f7d298889ac6ba9da11ea1bbf70b6065e94 Author: Philippe Gerum Date: Sat Nov 19 11:14:55 2016 +0100 cobalt/timer: fix build issue w/ CONFIG_SMP off --- include/cobalt/kernel/timer.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/cobalt/kernel/timer.h b/include/cobalt/kernel/timer.h index 86ac7a7..3c75354 100644 --- a/include/cobalt/kernel/timer.h +++ b/include/cobalt/kernel/timer.h @@ -522,6 +522,9 @@ int xntimer_setup_ipi(void); void xntimer_release_ipi(void); +bool xntimer_set_sched(struct xntimer *timer, + struct xnsched *sched); + #else /* ! CONFIG_SMP */ static inline void xntimer_migrate(struct xntimer *timer, @@ -535,10 +538,13 @@ static inline int xntimer_setup_ipi(void) static inline void xntimer_release_ipi(void) { } -#endif /* CONFIG_SMP */ +static inline bool xntimer_set_sched(struct xntimer *timer, +struct xnsched *sched) +{ + return true; +} -bool xntimer_set_sched(struct xntimer *timer, - struct xnsched *sched); +#endif /* CONFIG_SMP */ char *xntimer_format_time(xnticks_t ns, char *buf, size_t bufsz); ___ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : cobalt/timer: fix build issue w/ CONFIG_SMP off
Module: xenomai-3 Branch: wip/drivers Commit: 15620f7d298889ac6ba9da11ea1bbf70b6065e94 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=15620f7d298889ac6ba9da11ea1bbf70b6065e94 Author: Philippe Gerum Date: Sat Nov 19 11:14:55 2016 +0100 cobalt/timer: fix build issue w/ CONFIG_SMP off --- include/cobalt/kernel/timer.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/cobalt/kernel/timer.h b/include/cobalt/kernel/timer.h index 86ac7a7..3c75354 100644 --- a/include/cobalt/kernel/timer.h +++ b/include/cobalt/kernel/timer.h @@ -522,6 +522,9 @@ int xntimer_setup_ipi(void); void xntimer_release_ipi(void); +bool xntimer_set_sched(struct xntimer *timer, + struct xnsched *sched); + #else /* ! CONFIG_SMP */ static inline void xntimer_migrate(struct xntimer *timer, @@ -535,10 +538,13 @@ static inline int xntimer_setup_ipi(void) static inline void xntimer_release_ipi(void) { } -#endif /* CONFIG_SMP */ +static inline bool xntimer_set_sched(struct xntimer *timer, +struct xnsched *sched) +{ + return true; +} -bool xntimer_set_sched(struct xntimer *timer, - struct xnsched *sched); +#endif /* CONFIG_SMP */ char *xntimer_format_time(xnticks_t ns, char *buf, size_t bufsz); ___ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : cobalt/timer: fix build issue w/ CONFIG_SMP off
Module: xenomai-3 Branch: master Commit: 15620f7d298889ac6ba9da11ea1bbf70b6065e94 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=15620f7d298889ac6ba9da11ea1bbf70b6065e94 Author: Philippe Gerum Date: Sat Nov 19 11:14:55 2016 +0100 cobalt/timer: fix build issue w/ CONFIG_SMP off --- include/cobalt/kernel/timer.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/cobalt/kernel/timer.h b/include/cobalt/kernel/timer.h index 86ac7a7..3c75354 100644 --- a/include/cobalt/kernel/timer.h +++ b/include/cobalt/kernel/timer.h @@ -522,6 +522,9 @@ int xntimer_setup_ipi(void); void xntimer_release_ipi(void); +bool xntimer_set_sched(struct xntimer *timer, + struct xnsched *sched); + #else /* ! CONFIG_SMP */ static inline void xntimer_migrate(struct xntimer *timer, @@ -535,10 +538,13 @@ static inline int xntimer_setup_ipi(void) static inline void xntimer_release_ipi(void) { } -#endif /* CONFIG_SMP */ +static inline bool xntimer_set_sched(struct xntimer *timer, +struct xnsched *sched) +{ + return true; +} -bool xntimer_set_sched(struct xntimer *timer, - struct xnsched *sched); +#endif /* CONFIG_SMP */ char *xntimer_format_time(xnticks_t ns, char *buf, size_t bufsz); ___ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git