Skip to content

Commit

Permalink
ARM: mach-shmobile: add shmobile_earlytimer_init()
Browse files Browse the repository at this point in the history
Add shmobile_earlytimer_init() that can be used to
enable the earlytimer probing from the SoC code.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Magnus Damm authored and Rafael J. Wysocki committed Mar 12, 2012
1 parent e3b0161 commit 08ad42f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm/mach-shmobile/include/mach/common.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef __ARCH_MACH_COMMON_H
#define __ARCH_MACH_COMMON_H

extern void shmobile_earlytimer_init(void);
extern struct sys_timer shmobile_timer;
extern void shmobile_setup_console(void);
extern void shmobile_secondary_vector(void);
Expand Down
7 changes: 6 additions & 1 deletion arch/arm/mach-shmobile/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ static void __init shmobile_late_time_init(void)
early_platform_driver_probe("earlytimer", 2, 0);
}

static void __init shmobile_timer_init(void)
void __init shmobile_earlytimer_init(void)
{
late_time_init = shmobile_late_time_init;
}

static void __init shmobile_timer_init(void)
{
shmobile_earlytimer_init();
}

struct sys_timer shmobile_timer = {
.init = shmobile_timer_init,
};

0 comments on commit 08ad42f

Please sign in to comment.