* [RFC PATCH 0/7] sparc32: cleanup irq + smp files
@ 2011-01-23 21:39 Sam Ravnborg
2011-01-23 21:54 ` Sam Ravnborg
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Sam Ravnborg @ 2011-01-23 21:39 UTC (permalink / raw)
To: sparclinux
I am slowly working towards the goal of migrating
sparc32 to genirq.
PArt of the job is to understand the current code-base.
While reading the code I was constantly distracted
by all the minor issues in these.
So I cooked up a few patches to clean up the files.
In general I did like this:
- Manually identified headers that was not needed
- Added comments from an old patch from davem
- Read through the file and fixed all the obvious stuff
- Ran checkpatch on each file and fixed what I considered relevant
The files does not pass checkpatch with no warnings - this
was not my goal.
But the readability has increased which is good.
The patchset is based on top of sparc-next and does not
include changes previously posted that updates sparc64
irq support.
I will rebase if/when these patches are applied to sparc-next.
The RFC patchset is sent out so people can comment on them.
Note: I could have split it up much further but I did
not see much gain in this. The current patchset looks
quite review-able to me.
Some of the files has gained several additional comments.
These are all from an old patch I got from davem.
The patch "sparc32: remove tick14.c" is the same as was sent
out yesterday.
Sam
Sam Ravnborg (7):
sparc32: remove tick14.c
sparc32: add irq + smp declarations to headers
sparc32,sun4c: irq file cleanup
sparc32,sun4m: irq, smp files cleanup
sparc32,sun4d: irq, smp files cleanup
sparc32,sun4d: drop unused code in sun4d_distribute_irqs()
sparc32,sun4d: add comment in empty statement in sun4d_request_irq()
arch/sparc/include/asm/mmu_32.h | 3 +
arch/sparc/include/asm/smp_32.h | 6 +
arch/sparc/kernel/Makefile | 1 -
arch/sparc/kernel/irq_32.c | 6 +-
arch/sparc/kernel/kernel.h | 47 ++++++++
arch/sparc/kernel/setup_32.c | 19 ++--
arch/sparc/kernel/sun4c_irq.c | 81 ++++++++-------
arch/sparc/kernel/sun4d_irq.c | 227 +++++++++++++++++---------------------
arch/sparc/kernel/sun4d_smp.c | 176 +++++++++++-------------------
arch/sparc/kernel/sun4m_irq.c | 182 ++++++++++++++++---------------
arch/sparc/kernel/sun4m_smp.c | 91 ++++------------
arch/sparc/kernel/tick14.c | 39 -------
arch/sparc/prom/misc_32.c | 4 -
13 files changed, 394 insertions(+), 488 deletions(-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH 0/7] sparc32: cleanup irq + smp files
2011-01-23 21:39 [RFC PATCH 0/7] sparc32: cleanup irq + smp files Sam Ravnborg
@ 2011-01-23 21:54 ` Sam Ravnborg
2011-01-25 0:11 ` David Miller
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Sam Ravnborg @ 2011-01-23 21:54 UTC (permalink / raw)
To: sparclinux
On Sun, Jan 23, 2011 at 10:39:40PM +0100, Sam Ravnborg wrote:
> I am slowly working towards the goal of migrating
> sparc32 to genirq.
> PArt of the job is to understand the current code-base.
> While reading the code I was constantly distracted
> by all the minor issues in these.
>
> So I cooked up a few patches to clean up the files.
The patches survied my SPARCclassic config and defconfig.
But allnoconfig bails out with an error.
This is because asm-generic/tlb.h require linux/pagemap.h.
The include happended implicitly before.
Workaround is simple - see below.
I will try to get it fixed in asm-generic for benefit of all users.
Sam
diff --git a/arch/sparc/include/asm/tlb_32.h b/arch/sparc/include/asm/tlb_32.h
index 6d02d1c..d29b2ea 100644
--- a/arch/sparc/include/asm/tlb_32.h
+++ b/arch/sparc/include/asm/tlb_32.h
@@ -1,6 +1,8 @@
#ifndef _SPARC_TLB_H
#define _SPARC_TLB_H
+#include <linux/pagemap.h>
+
#define tlb_start_vma(tlb, vma) \
do { \
flush_cache_range(vma, vma->vm_start, vma->vm_end); \
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [RFC PATCH 0/7] sparc32: cleanup irq + smp files
2011-01-23 21:39 [RFC PATCH 0/7] sparc32: cleanup irq + smp files Sam Ravnborg
2011-01-23 21:54 ` Sam Ravnborg
@ 2011-01-25 0:11 ` David Miller
2011-01-25 0:17 ` David Miller
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2011-01-25 0:11 UTC (permalink / raw)
To: sparclinux
From: Sam Ravnborg <sam@ravnborg.org>
Date: Sun, 23 Jan 2011 22:54:38 +0100
> The patches survied my SPARCclassic config and defconfig.
> But allnoconfig bails out with an error.
>
> This is because asm-generic/tlb.h require linux/pagemap.h.
> The include happended implicitly before.
>
>
> Workaround is simple - see below.
> I will try to get it fixed in asm-generic for benefit of all users.
Please get this fix in asm-generic and merged upstream, then
repost your series and mention this dependency so I can merge
in Linus's tree first.
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH 0/7] sparc32: cleanup irq + smp files
2011-01-23 21:39 [RFC PATCH 0/7] sparc32: cleanup irq + smp files Sam Ravnborg
2011-01-23 21:54 ` Sam Ravnborg
2011-01-25 0:11 ` David Miller
@ 2011-01-25 0:17 ` David Miller
2011-01-25 7:52 ` Sam Ravnborg
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2011-01-25 0:17 UTC (permalink / raw)
To: sparclinux
From: David Miller <davem@davemloft.net>
Date: Mon, 24 Jan 2011 16:11:32 -0800 (PST)
> From: Sam Ravnborg <sam@ravnborg.org>
> Date: Sun, 23 Jan 2011 22:54:38 +0100
>
>> The patches survied my SPARCclassic config and defconfig.
>> But allnoconfig bails out with an error.
>>
>> This is because asm-generic/tlb.h require linux/pagemap.h.
>> The include happended implicitly before.
>>
>>
>> Workaround is simple - see below.
>> I will try to get it fixed in asm-generic for benefit of all users.
>
> Please get this fix in asm-generic and merged upstream, then
> repost your series and mention this dependency so I can merge
> in Linus's tree first.
>
> Thanks.
BTW, I did review the patches and they do otherwise look perfectly
fine to me.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH 0/7] sparc32: cleanup irq + smp files
2011-01-23 21:39 [RFC PATCH 0/7] sparc32: cleanup irq + smp files Sam Ravnborg
` (2 preceding siblings ...)
2011-01-25 0:17 ` David Miller
@ 2011-01-25 7:52 ` Sam Ravnborg
2011-01-25 20:42 ` David Miller
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Sam Ravnborg @ 2011-01-25 7:52 UTC (permalink / raw)
To: sparclinux
On Mon, Jan 24, 2011 at 04:11:32PM -0800, David Miller wrote:
> From: Sam Ravnborg <sam@ravnborg.org>
> Date: Sun, 23 Jan 2011 22:54:38 +0100
>
> > The patches survied my SPARCclassic config and defconfig.
> > But allnoconfig bails out with an error.
> >
> > This is because asm-generic/tlb.h require linux/pagemap.h.
> > The include happended implicitly before.
> >
> >
> > Workaround is simple - see below.
> > I will try to get it fixed in asm-generic for benefit of all users.
>
> Please get this fix in asm-generic and merged upstream, then
> repost your series and mention this dependency so I can merge
> in Linus's tree first.
Andrew already fixed it:
http://marc.info/?l=linux-mips&m\x129593731808647&w=2
I have build tested sparc32 allnoconfig + defconfig.
I will repost my serie when this fix is in mainline.
The updated serie will be on top of sparc-next.
Sam
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH 0/7] sparc32: cleanup irq + smp files
2011-01-23 21:39 [RFC PATCH 0/7] sparc32: cleanup irq + smp files Sam Ravnborg
` (3 preceding siblings ...)
2011-01-25 7:52 ` Sam Ravnborg
@ 2011-01-25 20:42 ` David Miller
2011-01-29 8:13 ` Sam Ravnborg
2011-01-29 8:44 ` David Miller
6 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2011-01-25 20:42 UTC (permalink / raw)
To: sparclinux
From: Sam Ravnborg <sam@ravnborg.org>
Date: Tue, 25 Jan 2011 08:52:47 +0100
> Andrew already fixed it:
> http://marc.info/?l=linux-mips&m\x129593731808647&w=2
>
> I have build tested sparc32 allnoconfig + defconfig.
>
> I will repost my serie when this fix is in mainline.
> The updated serie will be on top of sparc-next.
Thanks a lot Sam.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH 0/7] sparc32: cleanup irq + smp files
2011-01-23 21:39 [RFC PATCH 0/7] sparc32: cleanup irq + smp files Sam Ravnborg
` (4 preceding siblings ...)
2011-01-25 20:42 ` David Miller
@ 2011-01-29 8:13 ` Sam Ravnborg
2011-01-29 8:44 ` David Miller
6 siblings, 0 replies; 8+ messages in thread
From: Sam Ravnborg @ 2011-01-29 8:13 UTC (permalink / raw)
To: sparclinux
On Mon, Jan 24, 2011 at 04:17:54PM -0800, David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Mon, 24 Jan 2011 16:11:32 -0800 (PST)
>
> > From: Sam Ravnborg <sam@ravnborg.org>
> > Date: Sun, 23 Jan 2011 22:54:38 +0100
> >
> >> The patches survied my SPARCclassic config and defconfig.
> >> But allnoconfig bails out with an error.
> >>
> >> This is because asm-generic/tlb.h require linux/pagemap.h.
> >> The include happended implicitly before.
> >>
> >>
> >> Workaround is simple - see below.
> >> I will try to get it fixed in asm-generic for benefit of all users.
> >
> > Please get this fix in asm-generic and merged upstream, then
> > repost your series and mention this dependency so I can merge
> > in Linus's tree first.
> >
> > Thanks.
>
> BTW, I did review the patches and they do otherwise look perfectly
> fine to me.
Just realised that I did not give you credit for this review
in the patch-set I just sent out.
Would you like me to add your "Acked-by" / "Reviewed-by" in
future patches?
As you anyway sign-off the patches it may look a bit redundant.
But then it would be documented that you did not blindly
apply the patches.
Sam
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC PATCH 0/7] sparc32: cleanup irq + smp files
2011-01-23 21:39 [RFC PATCH 0/7] sparc32: cleanup irq + smp files Sam Ravnborg
` (5 preceding siblings ...)
2011-01-29 8:13 ` Sam Ravnborg
@ 2011-01-29 8:44 ` David Miller
6 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2011-01-29 8:44 UTC (permalink / raw)
To: sparclinux
From: Sam Ravnborg <sam@ravnborg.org>
Date: Sat, 29 Jan 2011 09:13:16 +0100
> As you anyway sign-off the patches it may look a bit redundant.
It is a bit redundant.
> But then it would be documented that you did not blindly
> apply the patches.
If I blindly apply patches and sign off on them, I should be shot. :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-01-29 8:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-23 21:39 [RFC PATCH 0/7] sparc32: cleanup irq + smp files Sam Ravnborg
2011-01-23 21:54 ` Sam Ravnborg
2011-01-25 0:11 ` David Miller
2011-01-25 0:17 ` David Miller
2011-01-25 7:52 ` Sam Ravnborg
2011-01-25 20:42 ` David Miller
2011-01-29 8:13 ` Sam Ravnborg
2011-01-29 8:44 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.