Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223734
b: refs/heads/master
c: c7c2580
h: refs/heads/master
v: v3
  • Loading branch information
Robert Richter authored and Ingo Molnar committed Jan 3, 2011
1 parent 9f1fcbd commit c42b470
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: 551423748a4eba55f2eb0fc250d757986471f187
refs/heads/master: c7c25802b39c443b3745cfa973dc49a97a3491f8
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 c42b470

Please sign in to comment.