public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - New UV genapic functions for x2apic
@ 2008-09-29 13:45 Jack Steiner
  2008-09-30  9:49 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Jack Steiner @ 2008-09-29 13:45 UTC (permalink / raw)
  To: mingo, tglx; +Cc: linux-kernel

Add functions that use the infrastructure added by the x2apic code. These
functions were originally stubbed out since the UV code went into the
tree prior to the x2apic code.

Signed-off-by: Jack Steiner <steiner@sgi.com>

---
 arch/x86/kernel/genx2apic_uv_x.c |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Index: linux/arch/x86/kernel/genx2apic_uv_x.c
===================================================================
--- linux.orig/arch/x86/kernel/genx2apic_uv_x.c	2008-09-28 07:27:00.000000000 -0500
+++ linux/arch/x86/kernel/genx2apic_uv_x.c	2008-09-28 11:53:23.000000000 -0500
@@ -114,7 +114,7 @@ static void uv_send_IPI_one(int cpu, int
 	unsigned long val, apicid, lapicid;
 	int pnode;
 
-	apicid = per_cpu(x86_cpu_to_apicid, cpu); /* ZZZ - cache node-local ? */
+	apicid = per_cpu(x86_cpu_to_apicid, cpu);
 	lapicid = apicid & 0x3f;		/* ZZZ macro needed */
 	pnode = uv_apicid_to_pnode(apicid);
 	val =
@@ -202,12 +202,10 @@ static unsigned int phys_pkg_id(int inde
 	return uv_read_apic_id() >> index_msb;
 }
 
-#ifdef ZZZ		/* Needs x2apic patch */
 static void uv_send_IPI_self(int vector)
 {
 	apic_write(APIC_SELF_IPI, vector);
 }
-#endif
 
 struct genapic apic_x2apic_uv_x = {
 	.name = "UV large system",
@@ -215,15 +213,15 @@ struct genapic apic_x2apic_uv_x = {
 	.int_delivery_mode = dest_Fixed,
 	.int_dest_mode = (APIC_DEST_PHYSICAL != 0),
 	.target_cpus = uv_target_cpus,
-	.vector_allocation_domain = uv_vector_allocation_domain,/* Fixme ZZZ */
+	.vector_allocation_domain = uv_vector_allocation_domain,
 	.apic_id_registered = uv_apic_id_registered,
 	.init_apic_ldr = uv_init_apic_ldr,
 	.send_IPI_all = uv_send_IPI_all,
 	.send_IPI_allbutself = uv_send_IPI_allbutself,
 	.send_IPI_mask = uv_send_IPI_mask,
-	/* ZZZ.send_IPI_self = uv_send_IPI_self, */
+	.send_IPI_self = uv_send_IPI_self,
 	.cpu_mask_to_apicid = uv_cpu_mask_to_apicid,
-	.phys_pkg_id = phys_pkg_id,	/* Fixme ZZZ */
+	.phys_pkg_id = phys_pkg_id,
 	.get_apic_id = get_apic_id,
 	.set_apic_id = set_apic_id,
 	.apic_id_mask = (0xFFFFFFFFu),

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] - New UV genapic functions for x2apic
  2008-09-29 13:45 [PATCH] - New UV genapic functions for x2apic Jack Steiner
@ 2008-09-30  9:49 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-09-30  9:49 UTC (permalink / raw)
  To: Jack Steiner; +Cc: tglx, linux-kernel, H. Peter Anvin


* Jack Steiner <steiner@sgi.com> wrote:

> Add functions that use the infrastructure added by the x2apic code. These
> functions were originally stubbed out since the UV code went into the
> tree prior to the x2apic code.
> 
> Signed-off-by: Jack Steiner <steiner@sgi.com>

applied to tip/x86/core, thanks Jack.

small patch submission request, could you please use this format in 
future patches:

   Subject: [PATCH] x86, UV: new genapic functions for x2apic

instead of:

   Subject: [PATCH] - New UV genapic functions for x2apic

that follows the typical subject line patterns in x86 commits more 
closely. Fixed it up in this patch, no need to resend.

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-30  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-29 13:45 [PATCH] - New UV genapic functions for x2apic Jack Steiner
2008-09-30  9:49 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox