Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
23 lines
619 B
C
23 lines
619 B
C
/*
|
|
* (C) 2010,2011 Thomas Renninger <trenn@suse.de>, Novell Inc.
|
|
*
|
|
* Licensed under the terms of the GNU GPL License version 2.
|
|
*
|
|
* 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 ******************/
|
|
|