fix a compilation error for non-smp