public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Sharing header files -- arch/arm/mach-generic  ?
@ 2012-04-23 19:40 Pavel Machek
  2012-04-23 19:52 ` Russell King - ARM Linux
  2012-04-23 20:15 ` Arnd Bergmann
  0 siblings, 2 replies; 3+ messages in thread
From: Pavel Machek @ 2012-04-23 19:40 UTC (permalink / raw)
  To: kernel list, linux-arm-kernel, wd

Hi!

I have new architecture I'd like to merge into the mainline. It has
some code very similar to existing plaforms (for example
real differences to mach-realview/platsmp.c are two lines.)

Is that a problem?

Should mach-generic/platsmp.c be created, so code can be better
shared? Or are the code pieces small enough that this duplication can
be ignored?

headsmp.S is another candidate for sharing. AFAICT we have 4 times
identical code in the tree already:

./mach-exynos/headsmp.S:   ldmia	r4, {r5, r6}
./plat-versatile/headsmp.S:		ldmia	 r4, {r5, r6}
./mach-ux500/headsmp.S:			ldmia	 r4, {r5, r6}
./mach-msm/headsmp.S:			ldmia	 r4, {r5, r6}

Thoughts?
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2012-04-23 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 19:40 Sharing header files -- arch/arm/mach-generic ? Pavel Machek
2012-04-23 19:52 ` Russell King - ARM Linux
2012-04-23 20:15 ` Arnd Bergmann

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