Skip to content

Commit

Permalink
MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h
Browse files Browse the repository at this point in the history
Move all IP27 declarations into one file.

Signed-off-by: Thomas Bogendoerfer <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: James Hogan <[email protected]>
Cc: [email protected]
Cc: [email protected]
  • Loading branch information
Thomas Bogendoerfer authored and paulburton committed Jan 9, 2020
1 parent 524c4e1 commit 9d0aaf9
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 26 deletions.
19 changes: 0 additions & 19 deletions arch/mips/include/asm/sn/sn_private.h

This file was deleted.

13 changes: 12 additions & 1 deletion arch/mips/sgi-ip27/ip27-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@
#ifndef __IP27_COMMON_H
#define __IP27_COMMON_H

extern void ip27_reboot_setup(void);
extern nasid_t master_nasid;

extern void cpu_node_probe(void);
extern void cpu_time_init(void);
extern void hub_rt_clock_event_init(void);
extern void hub_rtc_init(nasid_t nasid);
extern void install_cpu_nmi_handler(int slice);
extern void install_ipi(void);
extern void ip27_reboot_setup(void);
extern const struct plat_smp_ops ip27_smp_ops;
extern unsigned long node_getfirstfree(nasid_t nasid);
extern void per_cpu_init(void);
extern void replicate_kernel_text(void);
extern void setup_replication_mask(void);

#endif /* __IP27_COMMON_H */
3 changes: 2 additions & 1 deletion arch/mips/sgi-ip27/ip27-console.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
#include <asm/sn/agent.h>
#include <asm/sn/klconfig.h>
#include <asm/sn/ioc3.h>
#include <asm/sn/sn_private.h>

#include <linux/serial.h>
#include <linux/serial_core.h>

#include "ip27-common.h"

#define IOC3_CLK (22000000 / 3)
#define IOC3_FLAGS (0)

Expand Down
1 change: 0 additions & 1 deletion arch/mips/sgi-ip27/ip27-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <asm/mmu_context.h>
#include <asm/thread_info.h>
#include <asm/sn/launch.h>
#include <asm/sn/sn_private.h>
#include <asm/sn/mapped_kernel.h>

#include "ip27-common.h"
Expand Down
3 changes: 2 additions & 1 deletion arch/mips/sgi-ip27/ip27-klnuma.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#include <asm/sn/arch.h>
#include <asm/sn/gda.h>
#include <asm/sn/mapped_kernel.h>
#include <asm/sn/sn_private.h>

#include "ip27-common.h"

static nodemask_t ktext_repmask;

Expand Down
2 changes: 1 addition & 1 deletion arch/mips/sgi-ip27/ip27-memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include <asm/sn/arch.h>
#include <asm/sn/agent.h>
#include <asm/sn/klconfig.h>
#include <asm/sn/sn_private.h>

#include "ip27-common.h"

#define SLOT_PFNSHIFT (SLOT_SHIFT - PAGE_SHIFT)
#define PFN_NASIDSHFT (NASID_SHFT - PAGE_SHIFT)
Expand Down
1 change: 0 additions & 1 deletion arch/mips/sgi-ip27/ip27-smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <asm/sn/klconfig.h>
#include <asm/sn/launch.h>
#include <asm/sn/mapped_kernel.h>
#include <asm/sn/sn_private.h>
#include <asm/sn/types.h>

#include "ip27-common.h"
Expand Down
3 changes: 2 additions & 1 deletion arch/mips/sgi-ip27/ip27-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
#include <asm/sn/arch.h>
#include <asm/sn/addrs.h>
#include <asm/sn/agent.h>
#include <asm/sn/sn_private.h>

#include "ip27-common.h"

#define TICK_SIZE (tick_nsec / 1000)

Expand Down

0 comments on commit 9d0aaf9

Please sign in to comment.