[power-saving issue]

David Woodhouse dwmw2 at infradead.org
Tue Oct 15 08:56:42 EDT 2002


kevin at gv.com.tw said:
>  we want to stop gc thread manually when system goto suspend mode,
> can we simply call "jffs2_stop_garbage_collect_thread()"? and how to
> get its param: "struct jffs2_sb_info *c"

Send it a SIGSTOP from userspace, then a SIGCONT when you want it to wake 
up. Or send it a SIGKILL to kill it permanently (until the next remount).

> btw, i think gc thread wakeup only if its necessary not regularly,
> right?

Correct.

--
dwmw2






More information about the linux-mtd mailing list