!19 update prefetch_tuning

From: @xiezhipeng1
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
This commit is contained in:
openeuler-ci-bot 2020-11-19 14:39:16 +08:00 committed by Gitee
commit d8cea4390b
3 changed files with 27 additions and 10 deletions

Binary file not shown.

View File

@ -1,16 +1,17 @@
%define kmod_name prefetch_tuning
Name : prefetch_tuning
Summary : CPU prefetch tuning module for Kunpeng 920
Version : 1.0
Release : 3
License : GPLv2
Source0 : %{kmod_name}-%{version}.tar.gz
buildroot : %{_tmppath}/%{kmod_name}-%{version}-build
Name: prefetch_tuning
Summary: CPU prefetch tuning module for Kunpeng 920
Version: 1.2
Release: 1
License: GPLv2
Source0: https://gitee.com/openeuler/prefetch_tuning/repository/archive/v%{version}.tar.gz
buildroot: %{_tmppath}/%{kmod_name}-%{version}-build
BuildRequires: make
BuildRequires: gcc
BuildRequires: kernel-devel
ExclusiveArch: aarch64
%description
The driver of CPU prefetch tuning module for Kunpeng 920.
@ -19,7 +20,7 @@ Users can user this module to control CPU prefetch settings.
%global debug_package %{nil}
%prep
%setup -n %{kmod_name}-%{version}
%setup -n %{kmod_name}
sed -i 's/EXTRA_CFLAGS += -Wall -Werror/EXTRA_CFLAGS += -Wall/g' Makefile
%build
@ -42,12 +43,28 @@ rm -rf %_builddir/%{kmod_name}-%{version}
%pre
%posttrans
insmod /lib/modules/%{kmod_name}/%{kmod_name}.ko
%preun
rmmod prefetch_tuning
%changelog
* Mon Nov 16 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 1.2-1
- upgrade to v1.2
* Thu Sep 10 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 1.1-5
- update spec
* Thu Sep 10 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 1.1-4
- fix exclusiveArch to ExclusiveArch
* Wed Sep 9 2020 Liuke <liuke64@huawei.com> - 1.1-3
- Specify the architecture and enable compiling on ARM64 only.
* Mon Sep 7 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 1.1-2
- update spec
* Mon Sep 7 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 1.1-1
- upgrade to v1.1
* Thu Aug 6 2020 hanxinke <hanxinke@huawei.com> - 1.0-3
- Fix the prefetch_tuning.ko loading

BIN
v1.2.tar.gz Normal file

Binary file not shown.