Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223735
b: refs/heads/master
c: d425de5
h: refs/heads/master
i:
  223733: 9f1fcbd
  223731: 3da0252
  223727: e718fd6
v: v3
  • Loading branch information
Frederic Weisbecker committed Jan 3, 2011
1 parent c42b470 commit b9d2f64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 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: c7c25802b39c443b3745cfa973dc49a97a3491f8
refs/heads/master: d425de5436a620de506f9e4119bf8daa1cb93718
24 changes: 8 additions & 16 deletions trunk/arch/x86/oprofile/op_model_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,29 +630,21 @@ static int __init_ibs_nmi(void)
return 0;
}

/*
* check and reserve APIC extended interrupt LVT offset for IBS if
* available
*
* init_ibs() preforms implicitly cpu-local operations, so pin this
* thread to its current CPU
*/

/* initialize the APIC for the IBS interrupts if available */
static void init_ibs(void)
{
preempt_disable();

ibs_caps = get_ibs_caps();

if (!ibs_caps)
goto out;
return;

if (__init_ibs_nmi() < 0)
if (__init_ibs_nmi()) {
ibs_caps = 0;
else
printk(KERN_INFO "oprofile: AMD IBS detected (0x%08x)\n", ibs_caps);
return;
}

out:
preempt_enable();
printk(KERN_INFO "oprofile: AMD IBS detected (0x%08x)\n",
(unsigned)ibs_caps);
}

static int (*create_arch_files)(struct super_block *sb, struct dentry *root);
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/hist.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static size_t ipchain__fprintf_graph_line(FILE *fp, int depth, int depth_mask,

static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_list *chain,
int depth, int depth_mask, int period,
u64 total_samples, int hits,
u64 total_samples, u64 hits,
int left_margin)
{
int i;
Expand Down

0 comments on commit b9d2f64

Please sign in to comment.