lkml.org 
[lkml]   [2004]   [Aug]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 1 Aug 2004 22:13:34 -0700 (PDT)
FromPatrick Mochel <>
SubjectRe: [0/25] Merge pmdisk and swsusp

On Mon, 19 Jul 2004, Pavel Machek wrote:

> > <mochel@digitalimplant.org> (04/07/17 1.1865)
> >    [swsusp] Remove unneeded suspend_pagedir_lock.
>
> How do you guarantee that while copying pages back and forth,
> interrupts are disabled? They have to be, because memory snapshots are
> no longer atomic.

(This was cleared up in person in Ottawa, but just for the record: )

Interrupts are disabled in swsusp_suspend() and swsusp_resume(), using
local_irq_disable(), instead of doing spin_lock_irq().


	Pat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2008