summaryrefslogtreecommitdiff
path: root/sys-power/thermald/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-09 06:05:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-09 06:05:12 +0100
commit431cb94e4e840d61ea21c2c2bd10e07fc27b5538 (patch)
treea5ea0afac6f3ea24f6bafd60b9199e358b1a243f /sys-power/thermald/files
parent94ead5b3c01213a82c9b72a2df165452421db42b (diff)
gentoo auto-resync : 09:10:2023 - 06:05:11
Diffstat (limited to 'sys-power/thermald/files')
-rw-r--r--sys-power/thermald/files/thermald-2.5.4-ioctl.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-power/thermald/files/thermald-2.5.4-ioctl.patch b/sys-power/thermald/files/thermald-2.5.4-ioctl.patch
new file mode 100644
index 000000000000..85a4a82218aa
--- /dev/null
+++ b/sys-power/thermald/files/thermald-2.5.4-ioctl.patch
@@ -0,0 +1,25 @@
+diff --git a/src/acpi_thermal_rel_ioct.h b/src/acpi_thermal_rel_ioct.h
+index dd045a9..9b12a69 100644
+--- a/src/acpi_thermal_rel_ioct.h
++++ b/src/acpi_thermal_rel_ioct.h
+@@ -34,17 +34,14 @@
+ #define ACPI_THERMAL_GET_ART _IOR(ACPI_THERMAL_MAGIC, 6, unsigned long)
+
+ /*
+- * ACPI_THERMAL_GET_PSVT_REV = Revision number
+- * identifies limit type: 1=true proportional limit, 2=depth limit
+ * ACPI_THERMAL_GET_PSVT_COUNT = Number of PSVT entries
+ * ACPI_THERMAL_GET_PSVT_LEN = Total return data size (PSVT count x each
+ * PSVT entry size)
+ * ACPI_THERMAL_GET_PSVT = Get the data as an array of psvt_objects
+ */
+-#define ACPI_THERMAL_GET_PSVT_REV _IOR(ACPI_THERMAL_MAGIC, 7, unsigned long)
+-#define ACPI_THERMAL_GET_PSVT_LEN _IOR(ACPI_THERMAL_MAGIC, 8, unsigned long)
+-#define ACPI_THERMAL_GET_PSVT_COUNT _IOR(ACPI_THERMAL_MAGIC, 9, unsigned long)
+-#define ACPI_THERMAL_GET_PSVT _IOR(ACPI_THERMAL_MAGIC, 10, unsigned long)
++#define ACPI_THERMAL_GET_PSVT_LEN _IOR(ACPI_THERMAL_MAGIC, 7, unsigned long)
++#define ACPI_THERMAL_GET_PSVT_COUNT _IOR(ACPI_THERMAL_MAGIC, 8, unsigned long)
++#define ACPI_THERMAL_GET_PSVT _IOR(ACPI_THERMAL_MAGIC, 9, unsigned long)
+
+ #ifndef __KERNEL__
+ #define u64 unsigned long long