Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116648
b: refs/heads/master
c: 3bf77af
h: refs/heads/master
v: v3
  • Loading branch information
Frédéric Weisbecker authored and Ingo Molnar committed Oct 14, 2008
1 parent 2f48661 commit 1d2afc0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: 1f5c2abbdeb2bb07b20c6a66bfecefe6c867b1ee
refs/heads/master: 3bf77af6e1fef1124bf71d81f9f84885f0ee0dea
16 changes: 10 additions & 6 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,12 @@ int do_one_initcall(initcall_t fn)
ktime_t t0, t1, delta;
char msgbuf[64];
int result;
struct boot_trace it;

if (initcall_debug) {
printk("calling %pF", fn);
printk(" @ %i\n", task_pid_nr(current));
it.caller = task_pid_nr(current);
it.func = fn;
printk("calling %pF @ %i\n", fn, it.caller);
t0 = ktime_get();
}

Expand All @@ -721,10 +723,11 @@ int do_one_initcall(initcall_t fn)
if (initcall_debug) {
t1 = ktime_get();
delta = ktime_sub(t1, t0);

printk("initcall %pF returned %d after %Ld msecs\n",
fn, result,
(unsigned long long) delta.tv64 >> 20);
it.result = result;
it.duration = (unsigned long long) delta.tv64 >> 20;
printk("initcall %pF returned %d after %Ld msecs\n", fn,
result, it.duration);
trace_boot(&it);
}

msgbuf[0] = 0;
Expand Down Expand Up @@ -859,6 +862,7 @@ static int __init kernel_init(void * unused)
smp_prepare_cpus(setup_max_cpus);

do_pre_smp_initcalls();
start_boot_trace();

smp_init();
sched_init_smp();
Expand Down

0 comments on commit 1d2afc0

Please sign in to comment.