aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/debug
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-07-29 04:22:48 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-07-29 04:29:39 -0400
commit157b1a23856b9fb7cc3d19fa2ddc650b502bab3d (patch)
tree6123509f303e4e7d944201de682e2f5b5b4c99d7 /kernel/debug
parent47916be4e28c3d6fdb97dd8fb887d1d9b3145b9d (diff)
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>
Diffstat (limited to 'kernel/debug')
-rw-r--r--kernel/debug/kdb/kdb_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c
index ebe4a287419e..a7b9f8d07ffd 100644
--- a/kernel/debug/kdb/kdb_main.c
+++ b/kernel/debug/kdb/kdb_main.c
@@ -2440,6 +2440,7 @@ static void kdb_sysinfo(struct sysinfo *val)
2440 */ 2440 */
2441static int kdb_summary(int argc, const char **argv) 2441static int kdb_summary(int argc, const char **argv)
2442{ 2442{
2443 struct timespec now;
2443 struct kdb_tm tm; 2444 struct kdb_tm tm;
2444 struct sysinfo val; 2445 struct sysinfo val;
2445 2446
@@ -2454,7 +2455,8 @@ static int kdb_summary(int argc, const char **argv)
2454 kdb_printf("domainname %s\n", init_uts_ns.name.domainname); 2455 kdb_printf("domainname %s\n", init_uts_ns.name.domainname);
2455 kdb_printf("ccversion %s\n", __stringify(CCVERSION)); 2456 kdb_printf("ccversion %s\n", __stringify(CCVERSION));
2456 2457
2457 kdb_gmtime(&xtime, &tm); 2458 now = __current_kernel_time();
2459 kdb_gmtime(&now, &tm);
2458 kdb_printf("date %04d-%02d-%02d %02d:%02d:%02d " 2460 kdb_printf("date %04d-%02d-%02d %02d:%02d:%02d "
2459 "tz_minuteswest %d\n", 2461 "tz_minuteswest %d\n",
2460 1900+tm.tm_year, tm.tm_mon+1, tm.tm_mday, 2462 1900+tm.tm_year, tm.tm_mon+1, tm.tm_mday,