summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/ds.c
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2008-12-11 13:45:23 +0100
committerIngo Molnar <mingo@elte.hu>2008-12-12 08:08:10 +0100
commitb0884e25fe361f2ca228808fb5fd1b74cb04e711 (patch)
tree3501b08e29545f89733d592b8f7252253b399be6 /arch/x86/kernel/ds.c
parentf3134de60624829a57741c1f3796847d4de165f6 (diff)
downloadlinux-b0884e25fe361f2ca228808fb5fd1b74cb04e711.tar.bz2
x86, bts: turn BUG_ON into WARN_ON_ONCE
Impact: make the ds code more debuggable Turn BUG_ON's into WARN_ON_ONCE. Signed-off-by: Markus Metzger <markus.t.metzger@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/ds.c')
-rw-r--r--arch/x86/kernel/ds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c
index 19a8c2c0389f..095306988667 100644
--- a/arch/x86/kernel/ds.c
+++ b/arch/x86/kernel/ds.c
@@ -452,7 +452,7 @@ struct pebs_tracer *ds_request_pebs(struct task_struct *task,
static void ds_release(struct ds_tracer *tracer, enum ds_qualifier qual)
{
- BUG_ON(tracer->context->owner[qual] != tracer);
+ WARN_ON_ONCE(tracer->context->owner[qual] != tracer);
tracer->context->owner[qual] = NULL;
put_tracer(tracer->context->task);
@@ -774,7 +774,7 @@ ds_configure(const struct ds_configuration *cfg)
printk(KERN_INFO "DS available\n");
- BUG_ON(MAX_SIZEOF_DS < ds_cfg.sizeof_ds);
+ WARN_ON_ONCE(MAX_SIZEOF_DS < ds_cfg.sizeof_ds);
}
void __cpuinit ds_init_intel(struct cpuinfo_x86 *c)