It's buggy. It calls smp_processor_id() outside the preemption window, see
"load_LDT()".
I'd suggest making it use get/put_cpu() and to avoid the header file
dependencies moving it away from desc.h and into ldt.c instead.
Linus
-
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/