add support for loongarch64
Signed-off-by: lvgenggeng <lvgenggeng@uniontech.com> (cherry picked from commit 27d2e16a654ff505d3e27fbf16d347c383cebbba)
This commit is contained in:
parent
9c3a94d32d
commit
eddf673e6e
12
0001-Add-support-for-loongarch.patch
Normal file
12
0001-Add-support-for-loongarch.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up ./src/stalld.h.old ./src/stalld.h
|
||||
--- ./src/stalld.h.old 2023-07-20 10:28:58.525933347 +0800
|
||||
+++ ./src/stalld.h 2023-07-20 10:29:25.674132507 +0800
|
||||
@@ -83,7 +83,7 @@ struct cpu_info {
|
||||
#elif __arm__
|
||||
# define __NR_sched_setattr 380
|
||||
# define __NR_sched_getattr 381
|
||||
-#elif __aarch64__
|
||||
+#elif __aarch64__ || __loongarch64
|
||||
# define __NR_sched_setattr 274
|
||||
# define __NR_sched_getattr 275
|
||||
#elif __powerpc__
|
||||
@ -1,11 +1,12 @@
|
||||
Name: stalld
|
||||
Version: 1.16
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Daemon that finds starving tasks and gives them a temporary boost
|
||||
|
||||
License: GPLv2
|
||||
URL: https://gitlab.com/rt-linux-tools/%{name}
|
||||
Source0: https://gitlab.com/rt-linux-tools/%{name}/-/archive/v%{version}/%{name}-%{version}.tar.bz2
|
||||
Patch0: 0001-Add-support-for-loongarch.patch
|
||||
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: gcc
|
||||
@ -23,7 +24,7 @@ boost using the SCHED_DEADLINE policy. The default is to
|
||||
allow 10 microseconds of runtime for 1 second of clock time.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%make_build CFLAGS="%{optflags} %{build_cflags} -DVERSION="\\\"%{version}\\\""" LDFLAGS="%{build_ldflags}"
|
||||
@ -51,6 +52,9 @@ allow 10 microseconds of runtime for 1 second of clock time.
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
|
||||
%changelog
|
||||
* Thu Jul 20 2023 lvgenggeng <lvgenggeng@uniontech.com> - 1.16-2
|
||||
- add support for loongarch64
|
||||
|
||||
* Mon Nov 07 2022 duyiwei <duyiwei@kylinos.cn> - 1.16-1
|
||||
- upgrade version to 1.16
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user