Re: [PATCH 06/24] x86/oprofile: Renaming athlon_*() into op_amd_*()

From: Ingo Molnar
Date: Sat Jul 26 2008 - 05:56:12 EST



* Robert Richter <robert.richter@xxxxxxx> wrote:

> -struct op_x86_model_spec const op_athlon_spec = {
> +struct op_x86_model_spec const op_amd_spec = {
> .init = op_amd_init,
> .exit = op_amd_exit,
> .num_counters = NUM_COUNTERS,
> .num_controls = NUM_CONTROLS,
> - .fill_in_addresses = &athlon_fill_in_addresses,
> - .setup_ctrs = &athlon_setup_ctrs,
> - .check_ctrs = &athlon_check_ctrs,
> - .start = &athlon_start,
> - .stop = &athlon_stop,
> - .shutdown = &athlon_shutdown
> + .fill_in_addresses = &op_amd_fill_in_addresses,
> + .setup_ctrs = &op_amd_setup_ctrs,
> + .check_ctrs = &op_amd_check_ctrs,
> + .start = &op_amd_start,
> + .stop = &op_amd_stop,
> + .shutdown = &op_amd_shutdown
> };

minor style comment: while we are at touching these initializers, could
you also do a followup cleanup patch that uses the standard initializer
style of arch/x86 that have the initializer values aligned vertically?

Sample:

static const struct file_operations ptdump_fops = {
.open = ptdump_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,
};

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/