diff options
author | Robert Richter <robert.richter@amd.com> | 2009-07-07 13:25:39 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-07-14 10:44:51 -0400 |
commit | 6e63ea4b0b14ff5fb8a3ca704fcda7d28b95f079 (patch) | |
tree | 7cab2df807793495239c4264ee742628b904e01d /arch/x86/oprofile/op_model_p4.c | |
parent | 44ab9a6b0e909145d42615493952fe986b1ce5c2 (diff) |
x86/oprofile: Whitespaces changes only
This patch fixes whitespace changes of code that will be touched in
follow-on patches.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile/op_model_p4.c')
-rw-r--r-- | arch/x86/oprofile/op_model_p4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/oprofile/op_model_p4.c b/arch/x86/oprofile/op_model_p4.c index 9db9e361182c..5921b7fc724b 100644 --- a/arch/x86/oprofile/op_model_p4.c +++ b/arch/x86/oprofile/op_model_p4.c | |||
@@ -558,7 +558,7 @@ static void p4_setup_ctrs(struct op_x86_model_spec const *model, | |||
558 | } | 558 | } |
559 | 559 | ||
560 | /* clear the cccrs we will use */ | 560 | /* clear the cccrs we will use */ |
561 | for (i = 0 ; i < num_counters ; i++) { | 561 | for (i = 0; i < num_counters; i++) { |
562 | if (unlikely(!msrs->controls[i].addr)) | 562 | if (unlikely(!msrs->controls[i].addr)) |
563 | continue; | 563 | continue; |
564 | rdmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); | 564 | rdmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); |
@@ -575,7 +575,7 @@ static void p4_setup_ctrs(struct op_x86_model_spec const *model, | |||
575 | } | 575 | } |
576 | 576 | ||
577 | /* setup all counters */ | 577 | /* setup all counters */ |
578 | for (i = 0 ; i < num_counters ; ++i) { | 578 | for (i = 0; i < num_counters; ++i) { |
579 | if (counter_config[i].enabled && msrs->controls[i].addr) { | 579 | if (counter_config[i].enabled && msrs->controls[i].addr) { |
580 | reset_value[i] = counter_config[i].count; | 580 | reset_value[i] = counter_config[i].count; |
581 | pmc_setup_one_p4_counter(i); | 581 | pmc_setup_one_p4_counter(i); |
@@ -678,7 +678,7 @@ static void p4_shutdown(struct op_msrs const * const msrs) | |||
678 | { | 678 | { |
679 | int i; | 679 | int i; |
680 | 680 | ||
681 | for (i = 0 ; i < num_counters ; ++i) { | 681 | for (i = 0; i < num_counters; ++i) { |
682 | if (msrs->counters[i].addr) | 682 | if (msrs->counters[i].addr) |
683 | release_perfctr_nmi(msrs->counters[i].addr); | 683 | release_perfctr_nmi(msrs->counters[i].addr); |
684 | } | 684 | } |
@@ -687,7 +687,7 @@ static void p4_shutdown(struct op_msrs const * const msrs) | |||
687 | * conjunction with the counter registers (hence the starting offset). | 687 | * conjunction with the counter registers (hence the starting offset). |
688 | * This saves a few bits. | 688 | * This saves a few bits. |
689 | */ | 689 | */ |
690 | for (i = num_counters ; i < num_controls ; ++i) { | 690 | for (i = num_counters; i < num_controls; ++i) { |
691 | if (msrs->controls[i].addr) | 691 | if (msrs->controls[i].addr) |
692 | release_evntsel_nmi(msrs->controls[i].addr); | 692 | release_evntsel_nmi(msrs->controls[i].addr); |
693 | } | 693 | } |