Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| cb20fe7795 |
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 6 13:03:56 UTC 2025 - Michael Pujos <pujos.michael@gmail.com>
|
||||
|
||||
- added fix-leap16-compilation.patch to fix compilation on x86_64 Leap 16.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 2 13:31:16 UTC 2025 - Michael Pujos <pujos.michael@gmail.com>
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ URL: https://github.com/cyring/CoreFreq
|
||||
Source: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source100: corefreqd.service
|
||||
Source101: preamble
|
||||
# PATCH-FIX-OPENSUSE fix-leap16-compilation.patch bsc#1247592
|
||||
Patch: fix-leap16-compilation.patch
|
||||
BuildRequires: %{kernel_module_package_buildreqs}
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(libsystemd)
|
||||
@@ -40,7 +42,10 @@ and superiors, and AMD Families 0Fh–17h (Zen), 18h (Hygon
|
||||
Dhyana).
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%setup
|
||||
%if 0%{?suse_version} == 1600 && 0%{?is_opensuse}
|
||||
%patch -P 0 -p 1
|
||||
%endif
|
||||
|
||||
%build
|
||||
%make_build
|
||||
|
||||
22
fix-leap16-compilation.patch
Normal file
22
fix-leap16-compilation.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff -ruN CoreFreq-2.0.8.orig/x86_64/corefreqk.h CoreFreq-2.0.8/x86_64/corefreqk.h
|
||||
--- CoreFreq-2.0.8.orig/x86_64/corefreqk.h 2025-08-06 14:14:26.771406762 +0200
|
||||
+++ CoreFreq-2.0.8/x86_64/corefreqk.h 2025-08-06 15:02:28.729320262 +0200
|
||||
@@ -700,7 +700,7 @@
|
||||
|
||||
#if defined(CONFIG_AMD_NB) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
|
||||
|
||||
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0) /* asm/amd_node.h */
|
||||
+
|
||||
static u16 amd_pci_dev_to_node_id(struct pci_dev *pdev)
|
||||
{
|
||||
return PCI_SLOT(pdev->devfn) - AMD_NODE0_PCI_SLOT;
|
||||
@@ -708,9 +708,6 @@
|
||||
|
||||
#define GetRootFromNode(_node) pci_get_domain_bus_and_slot( 0x0, 0x0, \
|
||||
PCI_DEVFN(0x0, 0x0) )
|
||||
-#else
|
||||
-#define GetRootFromNode(_node) node_to_amd_nb(_node)->root
|
||||
-#endif
|
||||
|
||||
#define AMD_SMN_RW(node, address, value, write, indexPort, dataPort) \
|
||||
({ \
|
||||
Reference in New Issue
Block a user