mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 05:10:51 +07:00
6bb27d7349
Now that the only field in struct sys_timer is .init, delete the struct, and replace the machine descriptor .timer field with the initialization function itself. This will enable moving timer drivers into drivers/clocksource without having to place a public prototype of each struct sys_timer object into include/linux; the intent is to create a single of_clocksource_init() function that determines which timer driver to initialize by scanning the device dtree, much like the proposed irqchip_init() at: http://www.spinics.net/lists/arm-kernel/msg203686.html Includes mach-omap2 fixes from Igor Grinberg. Tested-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Stephen Warren <swarren@nvidia.com>
34 lines
772 B
C
34 lines
772 B
C
/*
|
|
* This file contains common function prototypes to avoid externs in the c files.
|
|
*
|
|
* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
|
|
*
|
|
* Licensed under GPLv2 or later.
|
|
*/
|
|
|
|
#ifndef __MACH_PRIMA2_COMMON_H__
|
|
#define __MACH_PRIMA2_COMMON_H__
|
|
|
|
#include <linux/init.h>
|
|
#include <asm/mach/time.h>
|
|
|
|
extern void sirfsoc_timer_init(void);
|
|
|
|
extern void __init sirfsoc_of_irq_init(void);
|
|
extern void __init sirfsoc_of_clk_init(void);
|
|
extern void sirfsoc_restart(char, const char *);
|
|
|
|
#ifndef CONFIG_DEBUG_LL
|
|
static inline void sirfsoc_map_lluart(void) {}
|
|
#else
|
|
extern void __init sirfsoc_map_lluart(void);
|
|
#endif
|
|
|
|
#ifdef CONFIG_SUSPEND
|
|
extern int sirfsoc_pm_init(void);
|
|
#else
|
|
static inline int sirfsoc_pm_init(void) { return 0; }
|
|
#endif
|
|
|
|
#endif
|