treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 166
[linux-block.git] / tools / power / cpupower / utils / helpers / topology.c
CommitLineData
4f19048f 1// SPDX-License-Identifier: GPL-2.0-only
7fe2f639
DB
2/*
3 * (C) 2010,2011 Thomas Renninger <trenn@suse.de>, Novell Inc.
4 *
7fe2f639
DB
5 * ToDo: Needs to be done more properly for AMD/Intel specifics
6 */
7
8/* Helper struct for qsort, must be in sync with cpupower_topology.cpu_info */
9/* Be careful: Need to pass unsigned to the sort, so that offlined cores are
10 in the end, but double check for -1 for offlined cpus at other places */
11
12#include <stdlib.h>
13#include <stdio.h>
14#include <unistd.h>
15#include <errno.h>
16#include <fcntl.h>
17
ac5a181d 18#include <cpuidle.h>
7fe2f639 19
ac5a181d 20/* CPU topology/hierarchy parsing ******************/
7fe2f639 21