diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-06-23 18:23:56 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-06-23 18:23:56 +0000 |
commit | 9aa7ceb0dfc84c74599f288e3559b2d72980a5ff (patch) | |
tree | 60025ace593eac52e4cf25ec18ecab6688d1fdbe /firmware/target/arm/tcc780x | |
parent | 1bcd53dd5b9334d39c2def974a5f0781ab1f86a6 (diff) | |
download | rockbox-9aa7ceb0dfc84c74599f288e3559b2d72980a5ff.tar.gz rockbox-9aa7ceb0dfc84c74599f288e3559b2d72980a5ff.zip |
Fix the D2 click/popping every second. Lesson from PCM-driver 101: don't disable FIQs unless you really, really need to.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17765 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc780x')
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c b/firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c index 9547dd8c4f..bae845695a 100644 --- a/firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/powermgmt-cowond2.c | |||
@@ -66,7 +66,7 @@ unsigned int battery_adc_voltage(void) | |||
66 | int adc_val, irq_status; | 66 | int adc_val, irq_status; |
67 | unsigned char buf[2]; | 67 | unsigned char buf[2]; |
68 | 68 | ||
69 | irq_status = disable_interrupt_save(IRQ_FIQ_DISABLED); | 69 | irq_status = disable_irq_save(); |
70 | pcf50606_write(PCF5060X_ADCC2, 0x1); | 70 | pcf50606_write(PCF5060X_ADCC2, 0x1); |
71 | pcf50606_read_multiple(PCF5060X_ADCS1, buf, 2); | 71 | pcf50606_read_multiple(PCF5060X_ADCS1, buf, 2); |
72 | restore_interrupt(irq_status); | 72 | restore_interrupt(irq_status); |