Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146144
b: refs/heads/master
c: 782cc5a
h: refs/heads/master
v: v3
  • Loading branch information
Markus Metzger authored and Ingo Molnar committed Apr 24, 2009
1 parent 5eb1527 commit 3d3ec84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 416dfdcdb894432547ead4fcb9fa6a36b396059e
refs/heads/master: 782cc5ae6331d63b4febaa312c9d14493aafa9b8
6 changes: 4 additions & 2 deletions trunk/arch/x86/kernel/ds_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,15 @@ static int ds_selftest_bts_bad_request_task(void *buffer)
int ds_selftest_bts(void)
{
struct ds_selftest_bts_conf conf;
unsigned char buffer[BUFFER_SIZE];
unsigned char buffer[BUFFER_SIZE], *small_buffer;
unsigned long irq;
int cpu;

printk(KERN_INFO "[ds] bts selftest...");
conf.error = 0;

small_buffer = (unsigned char *)ALIGN((unsigned long)buffer, 8) + 8;

get_online_cpus();
for_each_online_cpu(cpu) {
conf.suspend = ds_suspend_bts_wrap;
Expand Down Expand Up @@ -381,7 +383,7 @@ int ds_selftest_bts(void)
conf.suspend = ds_suspend_bts_noirq;
conf.resume = ds_resume_bts_noirq;
conf.tracer =
ds_request_bts_task(current, buffer, SMALL_BUFFER_SIZE,
ds_request_bts_task(current, small_buffer, SMALL_BUFFER_SIZE,
NULL, (size_t)-1, BTS_KERNEL);
local_irq_save(irq);
ds_selftest_bts_cpu(&conf);
Expand Down

0 comments on commit 3d3ec84

Please sign in to comment.