cpu-sched: Support assigning cpusets to services 07/242307/5
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 25 Aug 2020 12:00:11 +0000 (14:00 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 28 Aug 2020 10:19:26 +0000 (12:19 +0200)
Change-Id: Ie745a30723d4556fb57efaa4a70f76d63ee08c3e

src/cpu/cpu-sched.c

index ed28754..3b47a15 100644 (file)
@@ -517,6 +517,7 @@ static void register_notifiers()
        register_notifier(RESOURCED_NOTIFIER_CPU_OFF, cpu_sched_cpu_off);
 
        register_notifier(RESOURCED_NOTIFIER_APP_LAUNCH, cpu_sched_app_launch);
+       register_notifier(RESOURCED_NOTIFIER_SERVICE_LAUNCH, cpu_sched_app_launch);
 }
 
 static void unregister_notifiers()
@@ -531,6 +532,7 @@ static void unregister_notifiers()
        unregister_notifier(RESOURCED_NOTIFIER_CPU_OFF, cpu_sched_cpu_off);
 
        unregister_notifier(RESOURCED_NOTIFIER_APP_LAUNCH, cpu_sched_app_launch);
+       unregister_notifier(RESOURCED_NOTIFIER_SERVICE_LAUNCH, cpu_sched_app_launch);
 }
 
 static void cpu_sched_free_cpusets()