duplicate CPU check function

for the second core of the b-pi