Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279682
b: refs/heads/master
c: e4f387d
h: refs/heads/master
v: v3
  • Loading branch information
Li Zhong authored and Benjamin Herrenschmidt committed Jan 3, 2012
1 parent 1c5ee9c commit e549f9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 1bb0b7d21584b3f878e2bc880db62351ddee5185
refs/heads/master: e4f387d8db3ba3c2dae4d8bdfe7bb5f4fe1bcb0d
4 changes: 1 addition & 3 deletions trunk/arch/powerpc/platforms/pseries/hvCall_inst.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static void probe_hcall_entry(void *ignored, unsigned long opcode, unsigned long
if (opcode > MAX_HCALL_OPCODE)
return;

h = &get_cpu_var(hcall_stats)[opcode / 4];
h = &__get_cpu_var(hcall_stats)[opcode / 4];
h->tb_start = mftb();
h->purr_start = mfspr(SPRN_PURR);
}
Expand All @@ -126,8 +126,6 @@ static void probe_hcall_exit(void *ignored, unsigned long opcode, unsigned long
h->num_calls++;
h->tb_total += mftb() - h->tb_start;
h->purr_total += mfspr(SPRN_PURR) - h->purr_start;

put_cpu_var(hcall_stats);
}

static int __init hcall_inst_init(void)
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/powerpc/platforms/pseries/lpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ void __trace_hcall_entry(unsigned long opcode, unsigned long *args)
goto out;

(*depth)++;
preempt_disable();
trace_hcall_entry(opcode, args);
(*depth)--;

Expand All @@ -576,6 +577,7 @@ void __trace_hcall_exit(long opcode, unsigned long retval,

(*depth)++;
trace_hcall_exit(opcode, retval, retbuf);
preempt_enable();
(*depth)--;

out:
Expand Down

0 comments on commit e549f9f

Please sign in to comment.