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