From e4ce0964cd199f31252dfc37c6999d282144af69 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Wed, 7 Jan 2009 09:28:53 -0800 Subject: [PATCH] --- yaml --- r: 127203 b: refs/heads/master c: ad160d23198193135cb2bcc75222e0816b5838c0 h: refs/heads/master i: 127201: 240971a7c3eeec5c479542dec40e7f31cd7a2848 127199: 8e491380aafd84fdc434609c95dbfb586ad632dd v: v3 --- [refs] | 2 +- trunk/kernel/async.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index ef1373cdb622..bb7cbcb59c62 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 24b0ecad07ac4d7ef74cb6f7da08c449fa9f6a4f +refs/heads/master: ad160d23198193135cb2bcc75222e0816b5838c0 diff --git a/trunk/kernel/async.c b/trunk/kernel/async.c index afaa8a653d5a..97373380c9e7 100644 --- a/trunk/kernel/async.c +++ b/trunk/kernel/async.c @@ -124,12 +124,12 @@ static void run_one_entry(void) spin_unlock_irqrestore(&async_lock, flags); /* 3) run it (and print duration)*/ - if (initcall_debug) { + if (initcall_debug && system_state == SYSTEM_BOOTING) { printk("calling %lli_%pF @ %i\n", entry->cookie, entry->func, task_pid_nr(current)); calltime = ktime_get(); } entry->func(entry->data, entry->cookie); - if (initcall_debug) { + if (initcall_debug && system_state == SYSTEM_BOOTING) { rettime = ktime_get(); delta = ktime_sub(rettime, calltime); printk("initcall %lli_%pF returned 0 after %lld usecs\n", entry->cookie, @@ -220,14 +220,14 @@ void async_synchronize_cookie_special(async_cookie_t cookie, struct list_head *r { ktime_t starttime, delta, endtime; - if (initcall_debug) { + if (initcall_debug && system_state == SYSTEM_BOOTING) { printk("async_waiting @ %i\n", task_pid_nr(current)); starttime = ktime_get(); } wait_event(async_done, __lowest_in_progress(running) >= cookie); - if (initcall_debug) { + if (initcall_debug && system_state == SYSTEM_BOOTING) { endtime = ktime_get(); delta = ktime_sub(endtime, starttime);