[PATCH] x86: Add portable getcpu call