Skip to content

Commit 157b1a2

Browse files
committed
kgdb: Do not access xtime directly
The xtime cleanup missed the kgdb access to xtime. Fix it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 47916be commit 157b1a2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎kernel/debug/kdb/kdb_main.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,7 @@ static void kdb_sysinfo(struct sysinfo *val)
24402440
*/
24412441
static int kdb_summary(int argc, const char **argv)
24422442
{
2443+
struct timespec now;
24432444
struct kdb_tm tm;
24442445
struct sysinfo val;
24452446

@@ -2454,7 +2455,8 @@ static int kdb_summary(int argc, const char **argv)
24542455
kdb_printf("domainname %s\n", init_uts_ns.name.domainname);
24552456
kdb_printf("ccversion %s\n", __stringify(CCVERSION));
24562457

2457-
kdb_gmtime(&xtime, &tm);
2458+
now = __current_kernel_time();
2459+
kdb_gmtime(&now, &tm);
24582460
kdb_printf("date %04d-%02d-%02d %02d:%02d:%02d "
24592461
"tz_minuteswest %d\n",
24602462
1900+tm.tm_year, tm.tm_mon+1, tm.tm_mday,

0 commit comments

Comments
 (0)