Re: [patch] x86: microcode: Cosmetic changes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ben Castricum <lk0806@...>
Cc: <linux-kernel@...>, <trivial@...>
Date: Wednesday, June 11, 2008 - 1:09 pm

On Tue, Jun 10, 2008 at 01:15:12PM +0200, Ben Castricum wrote:
 > @@ -805,6 +806,9 @@ static int __init microcode_init (void)
 >  {
 >  	int error;
 >  
 > +	printk(KERN_INFO
 > +		"IA-32 Microcode Update Driver: v" MICROCODE_VERSION " <tigran@aivazian.fsnet.co.uk>\n");
 > +
 >  	error = microcode_dev_init();
 >  	if (error)
 >  		return error;
 > @@ -825,9 +829,6 @@ static int __init microcode_init (void)
 >  	}
 >  
 >  	register_hotcpu_notifier(&mc_cpu_notifier);
 > -
 > -	printk(KERN_INFO 
 > -		"IA-32 Microcode Update Driver: v" MICROCODE_VERSION " <tigran@aivazian.fsnet.co.uk>\n");
 >  	return 0;

By doing this before the registration of the sysdev, we'll
now be printing this on machines that don't have the microcode
update facility.   Pointless spew, for no obvious gain imo.

[Why we go through so many hoops before we check if the CPU is
 capable is a mystery to me. It would make more sense to have
 that be the first thing that gets checked when this inits]

	Dave

-- 
http://www.codemonkey.org.uk
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] x86: microcode: Cosmetic changes, Ben Castricum, (Tue Jun 10, 7:15 am)
Re: [patch] x86: microcode: Cosmetic changes, Ingo Molnar, (Thu Jul 3, 5:41 am)
Re: [patch] x86: microcode: Cosmetic changes, Dave Jones, (Wed Jun 11, 1:09 pm)
Re: [patch] x86: microcode: Cosmetic changes, Giacomo Catenazzi, (Thu Jun 12, 1:52 am)
Re: [patch] x86: microcode: Cosmetic changes, Tigran Aivazian, (Thu Jun 12, 3:48 am)