Skip to content

Commit 298bf1f

Browse files
author
Chip-Kerchner
committed
Reduce differences.
1 parent 71c6689 commit 298bf1f

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

driver/others/dynamic_power.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,23 +178,23 @@ static struct {
178178

179179
static int cpuid(void)
180180
{
181-
int i;
182-
uint32_t pvr;
183-
uint32_t cpu_type;
181+
int i;
182+
uint32_t pvr;
183+
uint32_t cpu_type;
184184

185-
asm("mfpvr %0" : "=r"(pvr));
185+
asm("mfpvr %0" : "=r"(pvr));
186186

187-
for (i = 0 ; i < sizeof pvrPOWER / sizeof *pvrPOWER ; ++i) {
188-
if ((pvr & pvrPOWER[i].pvr_mask) == pvrPOWER[i].pvr_value) {
189-
break;
190-
}
191-
}
187+
for (i = 0 ; i < sizeof pvrPOWER / sizeof *pvrPOWER ; ++i) {
188+
if ((pvr & pvrPOWER[i].pvr_mask) == pvrPOWER[i].pvr_value) {
189+
break;
190+
}
191+
}
192192

193193
#if defined(DEBUG)
194-
printf("%s: returning CPU=%s, cpu_type=%p\n", __func__,
195-
pvrPOWER[i].cpu_name, pvrPOWER[i].cpu_type);
194+
printf("%s: returning CPU=%s, cpu_type=%p\n", __func__,
195+
pvrPOWER[i].cpu_name, pvrPOWER[i].cpu_type);
196196
#endif
197-
cpu_type = pvrPOWER[i].cpu_type;
197+
cpu_type = pvrPOWER[i].cpu_type;
198198
return (int)(cpu_type);
199199
}
200200
#endif /* C_PGI */
@@ -252,10 +252,10 @@ static gotoblas_t *get_coretype(void) {
252252
#endif
253253
return &gotoblas_POWER10;
254254
#endif
255-
/* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
255+
/* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
256256
#if (!defined __GNUC__) || ( __GNUC__ >= 11) || (__GNUC__ == 10 && __GNUC_MINOR__ >= 2)
257-
if (__builtin_cpu_is("power10"))
258-
return &gotoblas_POWER9;
257+
if (__builtin_cpu_is("power10"))
258+
return &gotoblas_POWER9;
259259
#endif
260260
return NULL;
261261
}

0 commit comments

Comments
 (0)