]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/oprofile/op_model_p4.c
oprofile/x86: use kzalloc() instead of kmalloc()
[net-next-2.6.git] / arch / x86 / oprofile / op_model_p4.c
index ac6b354becdfe9f5859aa7930cc6b2aedb9f17e2..e6a160a4684a4a9d96914acc161122d6c7f8c208 100644 (file)
@@ -394,12 +394,6 @@ static void p4_fill_in_addresses(struct op_msrs * const msrs)
        setup_num_counters();
        stag = get_stagger();
 
-       /* initialize some registers */
-       for (i = 0; i < num_counters; ++i)
-               msrs->counters[i].addr = 0;
-       for (i = 0; i < num_controls; ++i)
-               msrs->controls[i].addr = 0;
-
        /* the counter & cccr registers we pay attention to */
        for (i = 0; i < num_counters; ++i) {
                addr = p4_counters[VIRT_CTR(stag, i)].counter_address;