!14 [sync] PR-13: add support for loongarch64

From: @openeuler-sync-bot 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
This commit is contained in:
openeuler-ci-bot 2023-08-11 06:23:39 +00:00 committed by Gitee
commit 68e0dc55bd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 18 additions and 2 deletions

View 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__

View File

@ -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