Files
htop/linux/LibSensors.h
Christian Göttsche 41af31be7f Rework CPU counting
Currently htop does not support offline CPUs and hot-swapping, e.g. via
    echo 0 > /sys/devices/system/cpu/cpu2/online

Split the current single cpuCount variable into activeCPUs and
existingCPUs.

Supersedes: #650
Related: #580
2021-07-18 07:44:02 +02:00

18 lines
376 B
C

#ifndef HEADER_LibSensors
#define HEADER_LibSensors
#include "config.h" // IWYU pragma: keep
#include <stdio.h>
#include "linux/LinuxProcessList.h"
int LibSensors_init(void);
void LibSensors_cleanup(void);
int LibSensors_reload(void);
void LibSensors_getCPUTemperatures(CPUData* cpus, unsigned int existingCPUs, unsigned int activeCPUs);
#endif /* HEADER_LibSensors */