!14 [sync] PR-13: add support for loongarch64
From: @openeuler-sync-bot Reviewed-by: @duyiwei7w Signed-off-by: @duyiwei7w
This commit is contained in:
commit
68e0dc55bd
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
|
Name: stalld
|
||||||
Version: 1.16
|
Version: 1.16
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Daemon that finds starving tasks and gives them a temporary boost
|
Summary: Daemon that finds starving tasks and gives them a temporary boost
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://gitlab.com/rt-linux-tools/%{name}
|
URL: https://gitlab.com/rt-linux-tools/%{name}
|
||||||
Source0: https://gitlab.com/rt-linux-tools/%{name}/-/archive/v%{version}/%{name}-%{version}.tar.bz2
|
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: glibc-devel
|
||||||
BuildRequires: gcc
|
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.
|
allow 10 microseconds of runtime for 1 second of clock time.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build CFLAGS="%{optflags} %{build_cflags} -DVERSION="\\\"%{version}\\\""" LDFLAGS="%{build_ldflags}"
|
%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
|
%systemd_postun_with_restart %{name}.service
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Nov 07 2022 duyiwei <duyiwei@kylinos.cn> - 1.16-1
|
||||||
- upgrade version to 1.16
|
- upgrade version to 1.16
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user