MN10300: And Panasonic AM34 subarch and implement SMP
Implement the Panasonic MN10300 AM34 CPU subarch and implement SMP support for MN10300. Also implement support for the MN2WS0060 processor and the ASB2364 evaluation board which are AM34 based. Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com> Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com> Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:

committed by
David Howells

parent
04157a6e7d
commit
368dd5acd1
@@ -38,14 +38,14 @@ EXPORT_SYMBOL(__delay);
|
||||
*/
|
||||
void __udelay(unsigned long usecs)
|
||||
{
|
||||
signed long ioclk, stop;
|
||||
unsigned long start, stop, cnt;
|
||||
|
||||
/* usecs * CLK / 1E6 */
|
||||
stop = __muldiv64u(usecs, MN10300_TSCCLK, 1000000);
|
||||
stop = TMTSCBC - stop;
|
||||
start = TMTSCBC;
|
||||
|
||||
do {
|
||||
ioclk = TMTSCBC;
|
||||
} while (stop < ioclk);
|
||||
cnt = start - TMTSCBC;
|
||||
} while (cnt < stop);
|
||||
}
|
||||
EXPORT_SYMBOL(__udelay);
|
||||
|
Reference in New Issue
Block a user