Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223736
b: refs/heads/master
c: a0a2b71
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jan 3, 2011
1 parent b9d2f64 commit de82944
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 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: d425de5436a620de506f9e4119bf8daa1cb93718
refs/heads/master: a0a2b71bb750ffe9b3faa317cb6317f4ad109383
24 changes: 16 additions & 8 deletions trunk/arch/x86/oprofile/op_model_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,21 +630,29 @@ static int __init_ibs_nmi(void)
return 0;
}

/* initialize the APIC for the IBS interrupts if available */
/*
* 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
*/

static void init_ibs(void)
{
ibs_caps = get_ibs_caps();
preempt_disable();

ibs_caps = get_ibs_caps();
if (!ibs_caps)
return;
goto out;

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

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

static int (*create_arch_files)(struct super_block *sb, struct dentry *root);
Expand Down

0 comments on commit de82944

Please sign in to comment.