From 59b71d5d05ca70ff8cc81296a25e14499987129c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 21 Mar 2017 01:21:23 -0400 Subject: sched: Be explicit with loading of the waketime variable Explicilty load the timer waketime variable into local variables in sched_timer_kick(). Change the optimization level from Os to O2. This helps gcc to avoid unnecessary reloads from memory in the common stepper_event() case. Signed-off-by: Kevin O'Connor --- src/simulator/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/simulator/main.c') diff --git a/src/simulator/main.c b/src/simulator/main.c index 4f715ab2..eb3025ca 100644 --- a/src/simulator/main.c +++ b/src/simulator/main.c @@ -76,7 +76,7 @@ timer_read_time(void) } uint8_t -timer_try_set_next(uint32_t next) +timer_try_set_next(unsigned int next) { return 1; } -- cgit v1.2.3-70-g09d2