daemon: don't reset priority if cpu boosting is enabled. 36/289236/2 accepted/tizen/unified/20230308.030944
authorjungsup lee <jungsup4.lee@samsung.com>
Fri, 3 Mar 2023 05:31:47 +0000 (14:31 +0900)
committerjungsup lee <jungsup4.lee@samsung.com>
Fri, 3 Mar 2023 05:39:49 +0000 (14:39 +0900)
[Version] 15.0-17
[Issue Type] Performance

Change-Id: Iff1d2e08ad769d6cd8e6c0b9eba9938e8328558a

meson.build
meson_options.txt
packaging/pulseaudio.spec
src/daemon/main.c

index 63afbcc..590c126 100644 (file)
@@ -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)
index 76638e1..22e82f7 100644 (file)
@@ -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,
index 3a7856d..0ac8096 100644 (file)
@@ -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
index 34d8f83..72c4227 100644 (file)
@@ -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, "");