@@ -381,15 +381,15 @@ static bool lvt_interrupt_supported(unsigned int bank, u32 msr_high_bits)
381381 return msr_high_bits & BIT (28 );
382382}
383383
384- static int lvt_off_valid (struct threshold_block * b , int apic , u32 lo , u32 hi )
384+ static bool lvt_off_valid (struct threshold_block * b , int apic , u32 lo , u32 hi )
385385{
386386 int msr = (hi & MASK_LVTOFF_HI ) >> 20 ;
387387
388388 if (apic < 0 ) {
389389 pr_err (FW_BUG "cpu %d, failed to setup threshold interrupt "
390390 "for bank %d, block %d (MSR%08X=0x%x%08x)\n" , b -> cpu ,
391391 b -> bank , b -> block , b -> address , hi , lo );
392- return 0 ;
392+ return false ;
393393 }
394394
395395 if (apic != msr ) {
@@ -399,15 +399,15 @@ static int lvt_off_valid(struct threshold_block *b, int apic, u32 lo, u32 hi)
399399 * was set is reserved. Return early here:
400400 */
401401 if (mce_flags .smca )
402- return 0 ;
402+ return false ;
403403
404404 pr_err (FW_BUG "cpu %d, invalid threshold interrupt offset %d "
405405 "for bank %d, block %d (MSR%08X=0x%x%08x)\n" ,
406406 b -> cpu , apic , b -> bank , b -> block , b -> address , hi , lo );
407- return 0 ;
407+ return false ;
408408 }
409409
410- return 1 ;
410+ return true ;
411411};
412412
413413/* Reprogram MCx_MISC MSR behind this threshold bank. */
0 commit comments