|
@@ -64,6 +64,8 @@ static void __iomem *scu_base_addr(void)
|
|
|
static DEFINE_SPINLOCK(scu_lock);
|
|
|
static unsigned long tmp;
|
|
|
|
|
|
+static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, 0xf0000600, 29);
|
|
|
+
|
|
|
static void modify_scu_cpu_psr(unsigned long set, unsigned long clr)
|
|
|
{
|
|
|
void __iomem *scu_base = scu_base_addr();
|
|
@@ -82,11 +84,7 @@ unsigned int __init r8a7779_get_core_count(void)
|
|
|
{
|
|
|
void __iomem *scu_base = scu_base_addr();
|
|
|
|
|
|
-#ifdef CONFIG_HAVE_ARM_TWD
|
|
|
- /* twd_base needs to be initialized before percpu_timer_setup() */
|
|
|
- twd_base = (void __iomem *)0xf0000600;
|
|
|
-#endif
|
|
|
-
|
|
|
+ shmobile_twd_init(&twd_local_timer);
|
|
|
return scu_get_core_count(scu_base);
|
|
|
}
|
|
|
|