From b3e4ff7ef098456fe66f69fbcef2bdc27d5b30dc Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 8 Jun 2016 22:02:13 -0400 Subject: sched: Use 'unsigned int' instead of 'uint16_t' for shutdown reason Use 'unsigned int' instead of 'uint16_t' as is faster on some platforms. Signed-off-by: Kevin O'Connor --- src/sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sched.c') diff --git a/src/sched.c b/src/sched.c index 6b9ec16f..450bc2c8 100644 --- a/src/sched.c +++ b/src/sched.c @@ -234,7 +234,7 @@ run_shutdown(void) // Shutdown the machine if not already in the process of shutting down void -sched_try_shutdown(uint16_t reason) +sched_try_shutdown(unsigned int reason) { if (shutdown_status != 2) sched_shutdown(reason); @@ -244,7 +244,7 @@ static jmp_buf shutdown_jmp; // Force the machine to immediately run the shutdown handlers void -sched_shutdown(uint16_t reason) +sched_shutdown(unsigned int reason) { irq_disable(); shutdown_reason = reason; -- cgit v1.2.3-70-g09d2