summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-08-28 11:11:03 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-08-28 11:11:03 -0400
commit77019c2c3c72cd7f0b6e716dd66a6e0d7bb21e04 (patch)
tree6f8606cb35c1360bfe7b264dbcbd3f9b8de9009f
parent1aee1683987e37196e9b188eb45c01e96a4a3f28 (diff)
downloadrockbox-77019c2c3c72cd7f0b6e716dd66a6e0d7bb21e04.tar.gz
rockbox-77019c2c3c72cd7f0b6e716dd66a6e0d7bb21e04.tar.bz2
rockbox-77019c2c3c72cd7f0b6e716dd66a6e0d7bb21e04.zip
Xduoo_X3 Fix timer_set_period fail to reenable
when timer_set_period is called timer is stopped but never reenabled Change-Id: I5cfc7a2d5620ff998005e013952b25f1e0a52754
-rw-r--r--firmware/target/mips/ingenic_jz47xx/timer-jz4760.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/timer-jz4760.c b/firmware/target/mips/ingenic_jz47xx/timer-jz4760.c
index 0f16825b34..b90dc8fcf0 100644
--- a/firmware/target/mips/ingenic_jz47xx/timer-jz4760.c
+++ b/firmware/target/mips/ingenic_jz47xx/timer-jz4760.c
@@ -78,10 +78,10 @@ bool timer_set(long cycles, bool start)
if(start)
{
system_enable_irq(IRQ_TCU1);
- __tcu_start_counter(5);
}
restore_irq(old_irq);
+ __tcu_start_counter(5);
return true;
}