thermal: Get correct PID for heat_cpu based on OS

When running the ps command, Android lists the pids in the
second column whereas Ubuntu lists the pids in the first column.
Check the os first before extracting the pid.

Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2 files changed