Blame SOURCES/0005-Fix-for-HZ-calculation-on-Linux-5.14-and-later.patch

604236
From f5637f341533ef2b28e2d6a6b12fcfb00d0fff2d Mon Sep 17 00:00:00 2001
604236
From: Lianbo Jiang <lijiang@redhat.com>
604236
Date: Mon, 10 Jan 2022 17:25:06 +0800
604236
Subject: [PATCH 05/11] Fix for HZ calculation on Linux 5.14 and later
604236
604236
Kernel commit 3e9a99eba058 ("block/mq-deadline: Rename dd_init_queue()
604236
and dd_exit_queue()") renamed dd_init_queue to dd_init_sched. Without
604236
the patch, the 'help -m' may print incorrect hz value as follows:
604236
604236
crash> help -m | grep hz
604236
       hz: 1000    <---The correct hz value on ppc64le machine is 100.
604236
	   ^^^^
604236
604236
Fixes: b93027ce5c75 ("Add alternate HZ calculation using write_expire")
604236
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
604236
---
604236
 task.c | 2 ++
604236
 1 file changed, 2 insertions(+)
604236
604236
diff --git a/task.c b/task.c
604236
index b5ddc88e0acb..76e184ae70b1 100644
604236
--- a/task.c
604236
+++ b/task.c
604236
@@ -440,6 +440,8 @@ task_init(void)
604236
 		}
604236
 	} else if ((symbol_exists("dd_init_queue") &&
604236
 	    gdb_set_crash_scope(symbol_value("dd_init_queue"), "dd_init_queue")) ||
604236
+	    (symbol_exists("dd_init_sched") &&
604236
+	    gdb_set_crash_scope(symbol_value("dd_init_sched"), "dd_init_sched")) ||
604236
 	    (symbol_exists("deadline_init_queue") &&
604236
 	    gdb_set_crash_scope(symbol_value("deadline_init_queue"), "deadline_init_queue"))) {
604236
 		char buf[BUFSIZE];
604236
-- 
604236
2.20.1
604236