Thread (58 messages) flat view 58 messages, 5 authors, 2012-02-23

[PATCH v2 07/19] ARM: at91/pm_slowclock: function slow_clock() accepts parameters

From: Jean-Christophe PLAGNIOL-VILLARD <hidden>
Date: 2012-02-22 13:06:31
Also in: lkml

On 09:52 Wed 22 Feb     , Russell King - ARM Linux wrote:
On Wed, Feb 22, 2012 at 10:39:33AM +0100, Nicolas Ferre wrote:
quoted
@@ -232,7 +246,7 @@ static int at91_pm_enter(suspend_state_t state)
 				/* copy slow_clock handler to SRAM, and call it */
 				memcpy(slow_clock, at91_slow_clock, at91_slow_clock_sz);
 #endif
-				slow_clock();
+				slow_clock(at91_pmc_base, at91_ramc0_base, at91_ramc1_base);
This should be updated to use the fncpy() stuff if there's any chance that
you'll be supporting Thumb-2.  Using fncpy() is probably a good idea even
if you aren't.  See asm/fncpy.h
Yes I agree and I plan to do it
but I'm work first on the update of the genalloc api to use it here to allocate
the address in sram

If it's ok with you I'll do it after

Btw I'm looking on a way to switch the assembly funciton to C but I didn,t find a
good way to calculate the function size except by touching at the linker
script. Which I don;t want to do.

Do you have any idea?

Best Regards,
J.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help