[Xenomai-git] Philippe Gerum : cobalt/clock: fix build issue w/ CONFIG_SMP off

2017-02-08 Thread git repository hosting
Module: xenomai-3
Branch: master
Commit: 8559d512a19a4b49fb0fc365a271627802d93c47
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=8559d512a19a4b49fb0fc365a271627802d93c47

Author: Philippe Gerum 
Date:   Fri Nov 18 19:05:19 2016 +0100

cobalt/clock: fix build issue w/ CONFIG_SMP off

---

 kernel/cobalt/clock.c |2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/cobalt/clock.c b/kernel/cobalt/clock.c
index 796358f..61778cd 100644
--- a/kernel/cobalt/clock.c
+++ b/kernel/cobalt/clock.c
@@ -744,6 +744,7 @@ void xnclock_tick(struct xnclock *clock)
 
atomic_only();
 
+#ifdef CONFIG_SMP
/*
 * Some external clock devices may have no percpu semantics,
 * in which case all timers are queued to slot #0.
@@ -753,6 +754,7 @@ void xnclock_tick(struct xnclock *clock)
!cpumask_test_cpu(xnsched_cpu(sched), >affinity))
tmq = _percpu_timerdata(clock, 0)->q;
else
+#endif
tmq = _this_timerdata(clock)->q;

/*


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : cobalt/clock: fix build issue w/ CONFIG_SMP off

2016-11-21 Thread git repository hosting
Module: xenomai-3
Branch: wip/drivers
Commit: 8559d512a19a4b49fb0fc365a271627802d93c47
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=8559d512a19a4b49fb0fc365a271627802d93c47

Author: Philippe Gerum 
Date:   Fri Nov 18 19:05:19 2016 +0100

cobalt/clock: fix build issue w/ CONFIG_SMP off

---

 kernel/cobalt/clock.c |2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/cobalt/clock.c b/kernel/cobalt/clock.c
index 796358f..61778cd 100644
--- a/kernel/cobalt/clock.c
+++ b/kernel/cobalt/clock.c
@@ -744,6 +744,7 @@ void xnclock_tick(struct xnclock *clock)
 
atomic_only();
 
+#ifdef CONFIG_SMP
/*
 * Some external clock devices may have no percpu semantics,
 * in which case all timers are queued to slot #0.
@@ -753,6 +754,7 @@ void xnclock_tick(struct xnclock *clock)
!cpumask_test_cpu(xnsched_cpu(sched), >affinity))
tmq = _percpu_timerdata(clock, 0)->q;
else
+#endif
tmq = _this_timerdata(clock)->q;

/*


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : cobalt/clock: fix build issue w/ CONFIG_SMP off

2016-11-21 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 8559d512a19a4b49fb0fc365a271627802d93c47
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=8559d512a19a4b49fb0fc365a271627802d93c47

Author: Philippe Gerum 
Date:   Fri Nov 18 19:05:19 2016 +0100

cobalt/clock: fix build issue w/ CONFIG_SMP off

---

 kernel/cobalt/clock.c |2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/cobalt/clock.c b/kernel/cobalt/clock.c
index 796358f..61778cd 100644
--- a/kernel/cobalt/clock.c
+++ b/kernel/cobalt/clock.c
@@ -744,6 +744,7 @@ void xnclock_tick(struct xnclock *clock)
 
atomic_only();
 
+#ifdef CONFIG_SMP
/*
 * Some external clock devices may have no percpu semantics,
 * in which case all timers are queued to slot #0.
@@ -753,6 +754,7 @@ void xnclock_tick(struct xnclock *clock)
!cpumask_test_cpu(xnsched_cpu(sched), >affinity))
tmq = _percpu_timerdata(clock, 0)->q;
else
+#endif
tmq = _this_timerdata(clock)->q;

/*


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : cobalt/clock: fix build issue w/ CONFIG_SMP off

2016-11-18 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 8559d512a19a4b49fb0fc365a271627802d93c47
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=8559d512a19a4b49fb0fc365a271627802d93c47

Author: Philippe Gerum 
Date:   Fri Nov 18 19:05:19 2016 +0100

cobalt/clock: fix build issue w/ CONFIG_SMP off

---

 kernel/cobalt/clock.c |2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/cobalt/clock.c b/kernel/cobalt/clock.c
index 796358f..61778cd 100644
--- a/kernel/cobalt/clock.c
+++ b/kernel/cobalt/clock.c
@@ -744,6 +744,7 @@ void xnclock_tick(struct xnclock *clock)
 
atomic_only();
 
+#ifdef CONFIG_SMP
/*
 * Some external clock devices may have no percpu semantics,
 * in which case all timers are queued to slot #0.
@@ -753,6 +754,7 @@ void xnclock_tick(struct xnclock *clock)
!cpumask_test_cpu(xnsched_cpu(sched), >affinity))
tmq = _percpu_timerdata(clock, 0)->q;
else
+#endif
tmq = _this_timerdata(clock)->q;

/*


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git