Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127203
b: refs/heads/master
c: ad160d2
h: refs/heads/master
i:
  127201: 240971a
  127199: 8e49138
v: v3
  • Loading branch information
Arjan van de Ven committed Jan 7, 2009
1 parent 7f5959e commit e4ce096
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24b0ecad07ac4d7ef74cb6f7da08c449fa9f6a4f
refs/heads/master: ad160d23198193135cb2bcc75222e0816b5838c0
8 changes: 4 additions & 4 deletions trunk/kernel/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit e4ce096

Please sign in to comment.