hulk inclusion category: cleanup bugzilla: https://gitee.com/openeuler/kernel/issues/IDB5TR ----------------------------------------- Cleanup unnecessary DEBUG logs, no functional logic changed. Signed-off-by: Zicheng Qu <quzicheng@huawei.com> --- kernel/xsched/core.c | 9 +-------- kernel/xsched/rt.c | 18 ++---------------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/kernel/xsched/core.c b/kernel/xsched/core.c index 57479fe800c9..5e6c5eec2dc9 100644 --- a/kernel/xsched/core.c +++ b/kernel/xsched/core.c @@ -110,8 +110,6 @@ static struct xsched_entity *__raw_pick_next_ctx(struct xsched_cu *xcu) return NULL; } - XSCHED_DEBUG("xse %d scheduled=%zu total=%zu @ %s\n", - next->tgid, scheduled, next->total_scheduled, __func__); break; } } @@ -230,8 +228,6 @@ static void submit_kick(struct vstream_metadata *vsm) XSCHED_ERR( "Fail to send Vstream id %u tasks to a device for processing.\n", vs->id); - - XSCHED_DEBUG("Vstream id %u submit vsm: sq_tail %u\n", vs->id, vsm->sq_tail); } static void submit_wait(struct vstream_metadata *vsm) @@ -347,11 +343,8 @@ struct vstream_metadata *xsched_vsm_fetch_first(struct vstream_info *vs) { struct vstream_metadata *vsm; - if (!vs || list_empty(&vs->metadata_list)) { - XSCHED_DEBUG("No metadata to fetch from vs %u @ %s\n", - vs->id, __func__); + if (!vs || list_empty(&vs->metadata_list)) return NULL; - } spin_lock(&vs->stream_lock); vsm = list_first_entry(&vs->metadata_list, struct vstream_metadata, node); diff --git a/kernel/xsched/rt.c b/kernel/xsched/rt.c index e2ce1ebb8a7a..0e601d61db1a 100644 --- a/kernel/xsched/rt.c +++ b/kernel/xsched/rt.c @@ -99,32 +99,18 @@ static struct xsched_entity *pick_next_ctx_rt(struct xsched_cu *xcu) int next_prio; next_prio = get_next_prio_rt(&xcu->xrq); - if (next_prio >= NR_XSE_PRIO) { - XSCHED_DEBUG("No pending kicks in RT class @ %s\n", __func__); + if (next_prio >= NR_XSE_PRIO) return NULL; - } - - result = xrq_next_xse(xcu, next_prio); - if (!result) - XSCHED_ERR("Next XSE not found @ %s\n", __func__); - else - XSCHED_DEBUG("Next XSE %u at prio %u @ %s\n", result->tgid, next_prio, __func__); - return result; + return xrq_next_xse(xcu, next_prio); } static void put_prev_ctx_rt(struct xsched_entity *xse) { xse->rt.timeslice -= xse->last_exec_runtime; - XSCHED_DEBUG( - "Update XSE=%d timeslice=%lld, XSE submitted=%lld in RT class @ %s\n", - xse->tgid, xse->rt.timeslice, - xse->last_exec_runtime, __func__); if (xse->rt.timeslice <= 0) { xse->rt.timeslice = XSCHED_RT_TIMESLICE; - XSCHED_DEBUG("Refill XSE=%d kick_slice=%lld in RT class @ %s\n", - xse->tgid, xse->rt.timeslice, __func__); xse_rt_move_tail(xse); } } -- 2.34.1