From 3d1ba627c18228457692639e9c9d8418876766d5 Mon Sep 17 00:00:00 2001 From: jungsup lee Date: Fri, 3 Mar 2023 14:31:47 +0900 Subject: [PATCH] daemon: don't reset priority if cpu boosting is enabled. [Version] 15.0-17 [Issue Type] Performance Change-Id: Iff1d2e08ad769d6cd8e6c0b9eba9938e8328558a --- meson.build | 4 ++++ meson_options.txt | 3 +++ packaging/pulseaudio.spec | 3 ++- src/daemon/main.c | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 63afbcc..590c126 100644 --- a/meson.build +++ b/meson.build @@ -641,6 +641,10 @@ if get_option('prelink') cdata.set('TIZEN_TV_PROD_PRELINK', 1) endif +if get_option('cpu-boosting') + cdata.set('TIZEN_TV_PROD_CPU_BOOSTING', 1) +endif + lwipc_dep = dependency('lwipc', required : get_option('lwipc')) if lwipc_dep.found() cdata.set('TIZEN_TV_PROD_LWIPC', 1) diff --git a/meson_options.txt b/meson_options.txt index 76638e1..22e82f7 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -46,6 +46,9 @@ option('hal-sysconfdir', option('aec', type : 'boolean', value : true, description : 'aec') +option('cpu-boosting', + type : 'boolean', value : false, + description : 'cpu-boosting') option('daemon', type : 'boolean', value : true, diff --git a/packaging/pulseaudio.spec b/packaging/pulseaudio.spec index 3a7856d..0ac8096 100644 --- a/packaging/pulseaudio.spec +++ b/packaging/pulseaudio.spec @@ -4,7 +4,7 @@ Name: pulseaudio Summary: Improved Linux sound server Version: 15.0 -Release: 16 +Release: 17 Group: Multimedia/Audio License: LGPL-2.1 URL: http://pulseaudio.org @@ -202,6 +202,7 @@ mkdir -p %{_vpath_builddir} -Dprelink=true \ -Dlwipc=true \ -Dbluez5=false \ + -Dcpu-boosting=true \ %endif -Doss-output=disabled \ -Dudevrulesdir=%{udev_dir}/rules.d diff --git a/src/daemon/main.c b/src/daemon/main.c index 34d8f83..72c4227 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -670,7 +670,9 @@ int main(int argc, char *argv[]) { pa_xfree(passed_fds); pa_reset_sigs(-1); pa_unblock_sigs(-1); +#ifndef TIZEN_TV_PROD_CPU_BOOSTING pa_reset_priority(); +#endif /* Load locale from the environment. */ setlocale(LC_ALL, ""); -- 2.7.4