[v0.98][Refactoring] Unify the use of unknown string

This commit is contained in:
Dr-Noob
2021-08-05 19:04:19 +02:00
parent 6e8a9612ad
commit 6ab6afc974
9 changed files with 7 additions and 19 deletions

View File

@@ -11,8 +11,6 @@
#include "../common/udev.h"
#include "../common/global.h"
#define STRING_UNKNOWN "Unknown"
void init_topology_struct(struct topology* topo, struct cache* cach) {
topo->total_cores = 0;
topo->physical_cores = 0;

View File

@@ -11,8 +11,6 @@
typedef uint32_t MICROARCH;
#define STRING_UNKNOWN "Unknown"
// Data not available
#define NA -1
@@ -69,7 +67,7 @@ void fill_uarch(struct uarch* arch, MICROARCH u) {
bool fill = false;
FILL_START
FILL_UARCH(arch->uarch, UARCH_UNKNOWN, "Unknown", UNK)
FILL_UARCH(arch->uarch, UARCH_UNKNOWN, STRING_UNKNOWN, UNK)
FILL_UARCH(arch->uarch, UARCH_PPC604, "PowerPC 604", 500)
FILL_UARCH(arch->uarch, UARCH_PPCG3, "PowerPC G3", UNK) // varies
FILL_UARCH(arch->uarch, UARCH_PPCG4, "PowerPC G4", UNK) // varies