Re: [PATCH] fix oops on resume from apm bios initiated suspend

From: Manfred Spraul (manfred@colorfullife.com)
Date: Wed May 28 2003 - 18:15:12 EST


Andrew Morton wrote:

Also, is there any point in doing load_LDT(&current->active_mm->context)
for a kernel thread?


Yes.
If the next thread switch is to a user space process that uses kernel_thread->active_mm as user_thread->mm, then switch_to does not load the ldt. (switch_to, in <asm-i386/mmu_context.h>)
--
Manfred

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