From 0c798772cc58f38556683d0779b3480aefdeb187 Mon Sep 17 00:00:00 2001 From: Benjamin Walsh Date: Fri, 1 May 2015 16:49:26 -0400 Subject: [PATCH] timer: fix incorrect nano_fiber_lifo_put in ISR The correct call is nano_isr_lifo_put, but they are aliases of each other, so that never caused an issue at runtime. Change-Id: Ibec8e6d3377133e5e67589c5a3ad1b8fb3cc652c Signed-off-by: Benjamin Walsh --- arch/arc/timer/arcv2_timer0.c | 2 +- arch/x86/timer/hpet.c | 2 +- arch/x86/timer/loApicTimer.c | 2 +- drivers/timer/i8253.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arc/timer/arcv2_timer0.c b/arch/arc/timer/arcv2_timer0.c index 694bc92eb8..8d7692fca0 100644 --- a/arch/arc/timer/arcv2_timer0.c +++ b/arch/arc/timer/arcv2_timer0.c @@ -160,7 +160,7 @@ void _timer_int_handler(void *unused) struct nano_lifo *lifo = &expired->lifo; _nano_timer_list = expired->link; - nano_fiber_lifo_put(lifo, expired->userData); + nano_isr_lifo_put(lifo, expired->userData); } } } diff --git a/arch/x86/timer/hpet.c b/arch/x86/timer/hpet.c index 1e2787dfe8..7db3a91159 100644 --- a/arch/x86/timer/hpet.c +++ b/arch/x86/timer/hpet.c @@ -350,7 +350,7 @@ void _timer_int_handler(void *unused) struct nano_timer *expired = _nano_timer_list; struct nano_lifo *chan = &expired->lifo; _nano_timer_list = expired->link; - nano_fiber_lifo_put(chan, expired->userData); + nano_isr_lifo_put(chan, expired->userData); } } #endif /* CONFIG_MICROKERNEL */ diff --git a/arch/x86/timer/loApicTimer.c b/arch/x86/timer/loApicTimer.c index da29aad16c..35eab4bda3 100644 --- a/arch/x86/timer/loApicTimer.c +++ b/arch/x86/timer/loApicTimer.c @@ -356,7 +356,7 @@ void _timer_int_handler(void *unused /* parameter is not used */ struct nano_timer *expired = _nano_timer_list; struct nano_lifo *chan = &expired->lifo; _nano_timer_list = expired->link; - nano_fiber_lifo_put(chan, expired->userData); + nano_isr_lifo_put(chan, expired->userData); } } #endif /* CONFIG_NANOKERNEL */ diff --git a/drivers/timer/i8253.c b/drivers/timer/i8253.c index 583457067f..904ac3cbf6 100644 --- a/drivers/timer/i8253.c +++ b/drivers/timer/i8253.c @@ -325,7 +325,7 @@ void _timer_int_handler(void *unusedArg /* not used */ struct nano_timer *expired = _nano_timer_list; struct nano_lifo *chan = &expired->lifo; _nano_timer_list = expired->link; - nano_fiber_lifo_put(chan, expired->userData); + nano_isr_lifo_put(chan, expired->userData); } } #endif /* CONFIG_NANOKERNEL */