LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] sgi-xp: only build for ia64-sn2 when CONFIG_IA64_GENERIC specified v.2
@ 2008-10-23 18:33 Dean Nelson
2008-10-27 22:02 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Dean Nelson @ 2008-10-23 18:33 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
For the time being build for ia64-sn2 alone when CONFIG_IA64_GENERIC is
specified.
Signed-off-by: Dean Nelson <dcn@sgi.com>
---
drivers/misc/sgi-xp/Makefile | 4 ++--
drivers/misc/sgi-xp/xp.h | 4 ++++
drivers/misc/sgi-xp/xpc_main.c | 4 ++--
3 files changed, 8 insertions(+), 4 deletions(-)
Index: linux/drivers/misc/sgi-xp/Makefile
===================================================================
--- linux.orig/drivers/misc/sgi-xp/Makefile 2008-10-23 10:59:42.000000000 -0500
+++ linux/drivers/misc/sgi-xp/Makefile 2008-10-23 10:59:44.000000000 -0500
@@ -5,14 +5,14 @@
obj-$(CONFIG_SGI_XP) += xp.o
xp-y := xp_main.o
xp-$(CONFIG_IA64_SGI_SN2) += xp_sn2.o xp_nofault.o
-xp-$(CONFIG_IA64_GENERIC) += xp_sn2.o xp_nofault.o xp_uv.o
+xp-$(CONFIG_IA64_GENERIC) += xp_sn2.o xp_nofault.o
xp-$(CONFIG_IA64_SGI_UV) += xp_uv.o
xp-$(CONFIG_X86_64) += xp_uv.o
obj-$(CONFIG_SGI_XP) += xpc.o
xpc-y := xpc_main.o xpc_channel.o xpc_partition.o
xpc-$(CONFIG_IA64_SGI_SN2) += xpc_sn2.o
-xpc-$(CONFIG_IA64_GENERIC) += xpc_sn2.o xpc_uv.o
+xpc-$(CONFIG_IA64_GENERIC) += xpc_sn2.o
xpc-$(CONFIG_IA64_SGI_UV) += xpc_uv.o
xpc-$(CONFIG_X86_64) += xpc_uv.o
Index: linux/drivers/misc/sgi-xp/xp.h
===================================================================
--- linux.orig/drivers/misc/sgi-xp/xp.h 2008-10-23 10:59:42.000000000 -0500
+++ linux/drivers/misc/sgi-xp/xp.h 2008-10-23 10:59:44.000000000 -0500
@@ -19,7 +19,11 @@
#include <asm/system.h>
#include <asm/sn/arch.h> /* defines is_shub1() and is_shub2() */
#define is_shub() ia64_platform_is("sn2")
+#ifdef CONFIG_IA64_SGI_UV
#define is_uv() ia64_platform_is("uv")
+#else
+#define is_uv() 0
+#endif
#endif
#ifdef CONFIG_X86_64
#include <asm/genapic.h>
Index: linux/drivers/misc/sgi-xp/xpc_main.c
===================================================================
--- linux.orig/drivers/misc/sgi-xp/xpc_main.c 2008-10-23 10:59:42.000000000 -0500
+++ linux/drivers/misc/sgi-xp/xpc_main.c 2008-10-23 10:59:44.000000000 -0500
@@ -1104,7 +1104,7 @@ xpc_do_exit(enum xp_retval reason)
if (is_shub())
xpc_exit_sn2();
- else
+ else if (is_uv())
xpc_exit_uv();
}
@@ -1363,7 +1363,7 @@ out_2:
out_1:
if (is_shub())
xpc_exit_sn2();
- else
+ else if (is_uv())
xpc_exit_uv();
return ret;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sgi-xp: only build for ia64-sn2 when CONFIG_IA64_GENERIC specified v.2
2008-10-23 18:33 [PATCH] sgi-xp: only build for ia64-sn2 when CONFIG_IA64_GENERIC specified v.2 Dean Nelson
@ 2008-10-27 22:02 ` Andrew Morton
2008-10-28 11:17 ` Dean Nelson
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2008-10-27 22:02 UTC (permalink / raw)
To: Dean Nelson; +Cc: linux-kernel
On Thu, 23 Oct 2008 13:33:35 -0500
Dean Nelson <dcn@sgi.com> wrote:
> For the time being build for ia64-sn2 alone when CONFIG_IA64_GENERIC is
> specified.
>
It is 100% unclear (to me) why this change is being made.
Apparently this is considered a needed-in-2.6.28 change. But I don't
know why.
If I knew that then I'd be in a better position to work out whether it
is also needed in 2.6.27.x, to which it also applies cleanly.
IOW: better changelogs, please.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sgi-xp: only build for ia64-sn2 when CONFIG_IA64_GENERIC specified v.2
2008-10-27 22:02 ` Andrew Morton
@ 2008-10-28 11:17 ` Dean Nelson
0 siblings, 0 replies; 3+ messages in thread
From: Dean Nelson @ 2008-10-28 11:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
On Mon, Oct 27, 2008 at 03:02:56PM -0700, Andrew Morton wrote:
> On Thu, 23 Oct 2008 13:33:35 -0500
> Dean Nelson <dcn@sgi.com> wrote:
>
> > For the time being build for ia64-sn2 alone when CONFIG_IA64_GENERIC is
> > specified.
> >
>
> It is 100% unclear (to me) why this change is being made.
It eliminates a dependency of the XP/XPC drivers on having the GRU driver
insmod'd in order to insmod them, when running on an ia64-sn2 system.
On such a system the GRU driver serves no useful purpose.
>
> Apparently this is considered a needed-in-2.6.28 change. But I don't
> know why.
>
> If I knew that then I'd be in a better position to work out whether it
> is also needed in 2.6.27.x, to which it also applies cleanly.
Having it applied to 2.6.27.x would be a good thing.
> IOW: better changelogs, please.
Sorry.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-28 11:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-23 18:33 [PATCH] sgi-xp: only build for ia64-sn2 when CONFIG_IA64_GENERIC specified v.2 Dean Nelson
2008-10-27 22:02 ` Andrew Morton
2008-10-28 11:17 ` Dean Nelson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).