cpuid: cpuid.[c|h] adaptation

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>