userland: how to find the cpu currently running at
In a userland program (C), how to get the current cpu? e.g. Is there any API for it?
I do not want to use CPUID:1.
Excuse me if I didn't express it clear, as I am not native English speaker.