From 42a7a8bc06685c2e3b3a50c1a926037c3c018eed Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 14 2021 15:01:03 +0000 Subject: Apply patch Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch patch_name: Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch present_in_specfile: true --- diff --git a/CPU.xs b/CPU.xs index 236b14d..067c9cb 100644 --- a/CPU.xs +++ b/CPU.xs @@ -395,6 +395,9 @@ CODE: sysctlbyname("hw.model", value, &len, NULL, 0); #endif #ifdef __linux__ +#if defined __arm__ || defined __aarch64__ + value = proc_cpuinfo_field ("Processor"); +#endif #if defined __s390__ || defined __s390x__ value = processor_machine_field (proc_cpuinfo_field ("processor") ); #endif