This introduces THREAD_ORDER (to accompany THREAD_SIZE, which now becomes a derivate of the former) in order to easily pass this to page allocation routines. Code consuming this (fixing the double fault handler to use per-CPU stacks) will soon follow. Signed-Off-By: Jan Beulich (actual patch attached)