Skip to content

Commit

Permalink
[PATCH] fix "kvm: add vm exit profiling"
Browse files Browse the repository at this point in the history
export profile_hits() on !SMP too.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jan 23, 2007
1 parent 9ee79a3 commit bbe1a59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ void profile_hits(int type, void *__pc, unsigned int nr_hits)
local_irq_restore(flags);
put_cpu();
}
EXPORT_SYMBOL_GPL(profile_hits);

static int __devinit profile_cpu_callback(struct notifier_block *info,
unsigned long action, void *__cpu)
Expand Down Expand Up @@ -401,6 +400,8 @@ void profile_hits(int type, void *__pc, unsigned int nr_hits)
}
#endif /* !CONFIG_SMP */

EXPORT_SYMBOL_GPL(profile_hits);

void profile_tick(int type)
{
struct pt_regs *regs = get_irq_regs();
Expand Down

0 comments on commit bbe1a59

Please sign in to comment.