Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: Safe powerdown feature

Re: Safe powerdown feature

From: c s <rb_dev_at_yahoo.com>
Date: Mon, 26 Jul 2004 17:35:10 -0700 (PDT)

--- Linus Nielsen Feltzing <linus_at_haxx.se> wrote:
> Andreas Stemmer wrote:
>
> > I just noticed that the safe powerdown feature
> spins up the drive every time
> > before shutting down, even if there's nothing to
> write. Are there any
> > reasons for this behaviour?
>
> Yes. There is currently no way of knowing if the
> settings have changed
> or not, so we have to write them to disk every time.
>
> Linus

Since ata_delayed_write is called (indirectly via
settings_save) to update the disk whenever settings
are changed, don't we just need to spin up the disk
only if the delayed_write flag is set, i.e. if a
delayed write is pending?

=====
Craig

rb_dev_at_yahoo.com


                
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-07-27

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy