cputopology lib - function renaming

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
cputopology lib: modify the check for identifying the number of threads

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>