diff options
author | Robert Richter <robert.richter@amd.com> | 2008-07-22 15:09:01 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-26 05:48:09 -0400 |
commit | 270d3e1a10e6ef85d5a085377e01d91dbcbe3726 (patch) | |
tree | 4844fe5a7f21748176f96e47dfaf0f56b8464ae8 /arch/x86/oprofile/nmi_int.c | |
parent | fc2bd7345b4e006a34c2ea3711d8c6b83cba50f7 (diff) |
OProfile: enable IBS for AMD CPUs
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: oprofile-list <oprofile-list@lists.sourceforge.net>
Cc: Barry Kasindorf <barry.kasindorf@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/oprofile/nmi_int.c')
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index b29819313f2b..287513a09819 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
@@ -468,6 +468,14 @@ int __init op_nmi_init(struct oprofile_operations *ops) | |||
468 | return -ENODEV; | 468 | return -ENODEV; |
469 | } | 469 | } |
470 | 470 | ||
471 | /* default values, can be overwritten by model */ | ||
472 | ops->create_files = nmi_create_files; | ||
473 | ops->setup = nmi_setup; | ||
474 | ops->shutdown = nmi_shutdown; | ||
475 | ops->start = nmi_start; | ||
476 | ops->stop = nmi_stop; | ||
477 | ops->cpu_type = cpu_type; | ||
478 | |||
471 | if (model->init) | 479 | if (model->init) |
472 | ret = model->init(ops); | 480 | ret = model->init(ops); |
473 | if (ret) | 481 | if (ret) |
@@ -475,12 +483,6 @@ int __init op_nmi_init(struct oprofile_operations *ops) | |||
475 | 483 | ||
476 | init_sysfs(); | 484 | init_sysfs(); |
477 | using_nmi = 1; | 485 | using_nmi = 1; |
478 | ops->create_files = nmi_create_files; | ||
479 | ops->setup = nmi_setup; | ||
480 | ops->shutdown = nmi_shutdown; | ||
481 | ops->start = nmi_start; | ||
482 | ops->stop = nmi_stop; | ||
483 | ops->cpu_type = cpu_type; | ||
484 | printk(KERN_INFO "oprofile: using NMI interrupt.\n"); | 486 | printk(KERN_INFO "oprofile: using NMI interrupt.\n"); |
485 | return 0; | 487 | return 0; |
486 | } | 488 | } |