Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 444aa18d authored by Olav Haugan's avatar Olav Haugan Committed by Gerrit - the friendly Code Review server
Browse files

sched/core_ctl: Integrate core control with cpu isolation



Replace hotplug functionality in core control with cpu isolation
and integrate into scheduler.

Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
[markivx: Fixed minor header include conflict and no HMP]
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>

Change-Id: I28a740f7e019db94b7b885533dc2cfbf6ddd7bae
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 37e1434e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@

#include "sched.h"
#include "walt.h"
#include "core_ctl.h"
#include "../workqueue_internal.h"
#include "../smpboot.h"

@@ -3142,6 +3143,8 @@ void scheduler_tick(void)

	if (curr->sched_class == &fair_sched_class)
		check_for_migration(rq, curr);

	core_ctl_check(wallclock);
}

#ifdef CONFIG_NO_HZ_FULL
+248 −234

File changed.

Preview size limit exceeded, changes collapsed.

+24 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef __CORE_CTL_H
#define __CORE_CTL_H

#ifdef CONFIG_SCHED_CORE_CTL
void core_ctl_check(u64 wallclock);
void core_ctl_set_boost(bool boost);
#else
static inline void core_ctl_check(u64 wallclock) {}
static inline void core_ctl_set_boost(bool boost) {}
#endif
#endif