doing sth
This commit is contained in:
27
include/cpu.h
Normal file
27
include/cpu.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef CPU_H
|
||||
#define CPU_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
enum cpu_module_t : uint8_t {
|
||||
unknown,
|
||||
k10temp,
|
||||
zenpower
|
||||
};
|
||||
|
||||
struct cpu_sensors_t {
|
||||
enum cpu_module_t module;
|
||||
uint8_t num_cores;
|
||||
int16_t tdie;
|
||||
int16_t tctl;
|
||||
int16_t tccd1;
|
||||
// double pcore;
|
||||
// double psoc;
|
||||
float ptotal;
|
||||
// double vcore;
|
||||
// double vsoc;
|
||||
uint32_t avg_freq;
|
||||
char hwmon[128];
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user