X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=kernel%2Fvserver%2Fhistory.c;h=f1e3e6cf4fa64e645619ced7a5eceaa078ab7659;hp=6e7e8b5326f055260452cdcb91889adbae2926c5;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57 diff --git a/kernel/vserver/history.c b/kernel/vserver/history.c index 6e7e8b532..f1e3e6cf4 100644 --- a/kernel/vserver/history.c +++ b/kernel/vserver/history.c @@ -138,19 +138,19 @@ void vxh_dump_entry(struct _vx_hist_entry *e, unsigned cpu) static void __vxh_dump_history(void) { - unsigned int i,j; + unsigned int i, cpu; printk("History:\tSEQ: %8x\tNR_CPUS: %d\n", atomic_read(&sequence), NR_CPUS); for (i=0; i < VXH_SIZE; i++) { - for (j=0; j < NR_CPUS; j++) { + for_each_online_cpu(cpu) { struct _vx_history *hist = - &per_cpu(vx_history_buffer, j); + &per_cpu(vx_history_buffer, cpu); unsigned int index = (hist->counter-i) % VXH_SIZE; struct _vx_hist_entry *entry = &hist->entry[index]; - vxh_dump_entry(entry, j); + vxh_dump_entry(entry, cpu); } } }