forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
594 B
21 lines
594 B
// SPDX-License-Identifier: GPL-2.0-only |
|
/* |
|
* (C) 2010,2011 Thomas Renninger <[email protected]>, Novell Inc. |
|
* |
|
* ToDo: Needs to be done more properly for AMD/Intel specifics |
|
*/ |
|
|
|
/* Helper struct for qsort, must be in sync with cpupower_topology.cpu_info */ |
|
/* Be careful: Need to pass unsigned to the sort, so that offlined cores are |
|
in the end, but double check for -1 for offlined cpus at other places */ |
|
|
|
#include <stdlib.h> |
|
#include <stdio.h> |
|
#include <unistd.h> |
|
#include <errno.h> |
|
#include <fcntl.h> |
|
|
|
#include <cpuidle.h> |
|
|
|
/* CPU topology/hierarchy parsing ******************/ |
|
|
|
|