thermal_hal: Add support to handle CPUs with non-sequential core_ids

Some targets support to have only selected cpu cores enabled and
in such cases, cpu ids will be in non-sequencial order.

Update logic to maintain cpu list with cpu counter instead of
cpu_id as list index.

Change-Id: If249f1ee0d0e8f5f0a2240c22b4fcfb136be4026
Signed-off-by: Gopala Krishna Nuthaki <quic_gnuthaki@quicinc.com>
1 file changed