Module: xenomai-jki Branch: for-upstream Commit: 1610bbcd8ebd76cbc31551d6edc76fe1f1c4fca3 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=1610bbcd8ebd76cbc31551d6edc76fe1f1c4fca3
Author: Jan Kiszka <[email protected]> Date: Thu Nov 4 17:17:03 2010 +0100 nucleus: Academic fix for xnpod_schedule_handler in UP mode This is likely dead code in the UP case, but it should nevertheless be logically correct as long as we build it: sched is used by xnsched_set_self_resched and must therefore be valid. Signed-off-by: Jan Kiszka <[email protected]> --- ksrc/nucleus/pod.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c index c04765d..f0f9c64 100644 --- a/ksrc/nucleus/pod.c +++ b/ksrc/nucleus/pod.c @@ -276,17 +276,14 @@ EXPORT_SYMBOL_GPL(xnpod_fatal_helper); void xnpod_schedule_handler(void) /* Called with hw interrupts off. */ { - xnsched_t *sched; + xnsched_t *sched = xnpod_current_sched(); trace_mark(xn_nucleus, sched_remote, MARK_NOARGS); #if defined(CONFIG_SMP) && defined(CONFIG_XENO_OPT_PRIOCPL) - sched = xnpod_current_sched(); if (testbits(sched->status, XNRPICK)) { clrbits(sched->status, XNRPICK); xnshadow_rpi_check(); } -#else - (void)sched; #endif /* CONFIG_SMP && CONFIG_XENO_OPT_PRIOCPL */ xnsched_set_self_resched(sched); xnpod_schedule(); _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
