Messages in this thread | | | Date | Sun, 1 Aug 2004 22:13:34 -0700 (PDT) | From | Patrick Mochel <> | Subject | Re: [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/
| |