Files
kernel_common_drivers/drivers/debug/lockup.h
T
Hanjie Lin ce6122cee7 sched: optimize sched flag and correct cpu selecting for non-bind tasks [1/1]
PD#SWPL-185970

Problem:
1, need modify sched_domain flags for GKI20
2, Some tasks have been running in apu before isolating cpu.

Solution:
when tasks were scheduled, if tasks shouldn't be run on the apu,
they will be migrated to other cpus.

sync form 5.15
318edc835 isolcpus: don't select isolate cpu for non-bind tasks. [1/1]
db7f29820 sched_domain: enable BALANCE_WAKE and disable WAKE_AFFINE [1/1]

Verify:
sc2

Change-Id: I5a9610ad210b58a4cf427956296a062d95458eaa
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-11-13 00:42:18 -08:00

27 lines
549 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __DEBUG_LOCKUP_H_
#define __DEBUG_LOCKUP_H_
#define DEBUG_HOOK_MAGIC 0x64656280 //'d', 'e', 'b', '\x80'
enum debug_hook_type {
DEBUG_HOOK_IRQ_START,
DEBUG_HOOK_IRQ_STOP,
DEBUG_HOOK_PSTORE_ATTACH,
DEBUG_HOOK_MAX_CNT,
};
void pr_lockup_info(int lock_cpu);
void rebuild_sched_flag(void);
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG_TEST)
extern int smc_long_debug;
extern int idle_long_debug;
#endif
#endif /*_DEBUG_LOCKUP_H__*/