diff options
author | Andi Kleen <ak@suse.de> | 2007-04-24 07:05:37 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-04-24 07:05:37 -0400 |
commit | 8689b517be3e3f65f8ba20490beccca13c5879fa (patch) | |
tree | 4b70c8163dfd52c9ec4297cbd04aed9b96daaa86 | |
parent | 90767bd13febfdf8a5f5077e2bb975f79d6b919c (diff) |
[PATCH] i386: Fix some warnings added by earlier patch
Signed-off-by: Andi Kleen <ak@suse.de>
-rw-r--r-- | arch/i386/kernel/nmi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/kernel/nmi.c b/arch/i386/kernel/nmi.c index 9f1e8c1afab7..84c3497efb60 100644 --- a/arch/i386/kernel/nmi.c +++ b/arch/i386/kernel/nmi.c | |||
@@ -126,7 +126,7 @@ int avail_to_resrv_perfctr_nmi_bit(unsigned int counter) | |||
126 | int cpu; | 126 | int cpu; |
127 | BUG_ON(counter > NMI_MAX_COUNTER_BITS); | 127 | BUG_ON(counter > NMI_MAX_COUNTER_BITS); |
128 | for_each_possible_cpu (cpu) { | 128 | for_each_possible_cpu (cpu) { |
129 | if (test_bit(counter, &per_cpu(perfctr_nmi_owner, cpu))) | 129 | if (test_bit(counter, &per_cpu(perfctr_nmi_owner, cpu)[0])) |
130 | return 0; | 130 | return 0; |
131 | } | 131 | } |
132 | return 1; | 132 | return 1; |
@@ -142,7 +142,7 @@ int avail_to_resrv_perfctr_nmi(unsigned int msr) | |||
142 | BUG_ON(counter > NMI_MAX_COUNTER_BITS); | 142 | BUG_ON(counter > NMI_MAX_COUNTER_BITS); |
143 | 143 | ||
144 | for_each_possible_cpu (cpu) { | 144 | for_each_possible_cpu (cpu) { |
145 | if (test_bit(counter, &per_cpu(perfctr_nmi_owner, cpu))) | 145 | if (test_bit(counter, &per_cpu(perfctr_nmi_owner, cpu)[0])) |
146 | return 0; | 146 | return 0; |
147 | } | 147 | } |
148 | return 1; | 148 | return 1; |
@@ -157,7 +157,7 @@ static int __reserve_perfctr_nmi(int cpu, unsigned int msr) | |||
157 | counter = nmi_perfctr_msr_to_bit(msr); | 157 | counter = nmi_perfctr_msr_to_bit(msr); |
158 | BUG_ON(counter > NMI_MAX_COUNTER_BITS); | 158 | BUG_ON(counter > NMI_MAX_COUNTER_BITS); |
159 | 159 | ||
160 | if (!test_and_set_bit(counter, &per_cpu(perfctr_nmi_owner, cpu))) | 160 | if (!test_and_set_bit(counter, &per_cpu(perfctr_nmi_owner, cpu)[0])) |
161 | return 1; | 161 | return 1; |
162 | return 0; | 162 | return 0; |
163 | } | 163 | } |
@@ -171,7 +171,7 @@ static void __release_perfctr_nmi(int cpu, unsigned int msr) | |||
171 | counter = nmi_perfctr_msr_to_bit(msr); | 171 | counter = nmi_perfctr_msr_to_bit(msr); |
172 | BUG_ON(counter > NMI_MAX_COUNTER_BITS); | 172 | BUG_ON(counter > NMI_MAX_COUNTER_BITS); |
173 | 173 | ||
174 | clear_bit(counter, &per_cpu(perfctr_nmi_owner, cpu)); | 174 | clear_bit(counter, &per_cpu(perfctr_nmi_owner, cpu)[0]); |
175 | } | 175 | } |
176 | 176 | ||
177 | int reserve_perfctr_nmi(unsigned int msr) | 177 | int reserve_perfctr_nmi(unsigned int msr) |