{
if (cs.fg) {
register_notifier(RESOURCED_NOTIFIER_APP_RESUME, cpu_sched_app_foreground);
+ register_notifier(RESOURCED_NOTIFIER_APP_SUSPEND, cpu_sched_app_background);
register_notifier(RESOURCED_NOTIFIER_APP_FOREGRD, cpu_sched_app_foreground);
register_notifier(RESOURCED_NOTIFIER_APP_BACKGRD, cpu_sched_app_background);
{
if (cs.fg) {
unregister_notifier(RESOURCED_NOTIFIER_APP_RESUME, cpu_sched_app_foreground);
+ unregister_notifier(RESOURCED_NOTIFIER_APP_SUSPEND, cpu_sched_app_background);
unregister_notifier(RESOURCED_NOTIFIER_APP_FOREGRD, cpu_sched_app_foreground);
unregister_notifier(RESOURCED_NOTIFIER_APP_BACKGRD, cpu_sched_app_background);