[Compass-ci] [PATCH v3 lkp-tests] tests: add get_cpu function