Spinlock and ap init