Re: [PATCH] AMD Thermal Interrupt Support

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Russell Leidich <rml@...>
Cc: <linux-kernel@...>, Andi Kleen <ak@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>
Date: Tuesday, December 25, 2007 - 6:04 pm

On Mon, 17 Dec 2007 10:54:53 -0800 (PST) rml@google.com (Russell Leidich) wrote:


Please never add extern declarations in C files - find a suitable header
which is seen by the definition and by all users.


smp_call_function_single() already takes care of the
called-on-the-right-cpu case.


eek, google coding "style" ;)

Please feed patches through scripts/checkpatch.pl.


afaict this function is called while the calling thread is running
preemptibly.  This smp_processor_id() call should have generated a runtime
warning if it was tested with all debug options enabled?

Please see Documentation/SumitChecklist.


The logic in this function looks more complex than it needs to be.

	if (num_k8_northbridges == 0)
		goto out;
	for (nb_num = 0; nb_num < num_k8_northbridges; nb_num++) {
		if ((k8_northbridges[nb_num]->device) == 0x1103)
			goto out;
	}

maybe?	


static void default_smp_thermal_interrupt(void)
{
}

please.


Can this function ever actually be called?


Yes, this is the case where typedefs are OK.  But please put a _t at the end
of the name.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] AMD Thermal Interrupt Support, Andrew Morton, (Tue Dec 25, 6:04 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Thu Dec 27, 2:57 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andrew Morton, (Fri Dec 28, 3:34 am)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Fri Dec 28, 4:40 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Sun Dec 30, 2:39 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Wed Jan 2, 3:43 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Wed Jan 2, 4:00 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Wed Jan 2, 5:12 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Torsten Kaiser, (Wed Jan 2, 5:33 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Wed Jan 2, 5:50 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Wed Jan 2, 5:54 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Fri Jan 4, 5:33 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Fri Jan 4, 6:26 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Fri Jan 4, 8:53 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Sat Jan 5, 9:24 am)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Sat Jan 5, 4:08 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Tue Jan 8, 7:42 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Tue Jan 8, 7:52 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Tue Jan 8, 10:28 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Tue Jan 8, 10:37 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Thu Jan 10, 10:21 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Thu Jan 17, 9:06 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andrew Morton, (Sat Feb 2, 8:10 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Harvey Harrison, (Sat Feb 2, 8:27 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andrew Morton, (Sat Feb 2, 8:39 pm)
[PATCH] x86: Remove pt_regs arg from smp_thermal_interrupt, Harvey Harrison, (Sat Feb 2, 8:50 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Wed Jan 2, 6:32 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Fri Dec 28, 10:11 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Fri Dec 28, 10:34 pm)