summaryrefslogtreecommitdiff
path: root/src/cpu/amd/quadcore
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@amd.com>2008-04-25 21:34:25 +0000
committerMarc Jones <marc.jones@amd.com>2008-04-25 21:34:25 +0000
commit65e08040f912698752b239f499f3efc7f1c0ac0c (patch)
tree0d582a6677dae7471309ac1151a3ebf01d09ffc2 /src/cpu/amd/quadcore
parent7ca3ec2e5c8d03e2b73d9aaaf6758047cd32b433 (diff)
downloadcoreboot-65e08040f912698752b239f499f3efc7f1c0ac0c.tar.xz
Remove inline from FAM10 CPU initialization functions.
This doesn't save any space for me but it is the right thing to allow GCC to optimize. Signed-off-by: Marc Jones <marc.jones@amd.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3266 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd/quadcore')
-rw-r--r--src/cpu/amd/quadcore/quadcore.c10
-rw-r--r--src/cpu/amd/quadcore/quadcore_id.c6
2 files changed, 8 insertions, 8 deletions
diff --git a/src/cpu/amd/quadcore/quadcore.c b/src/cpu/amd/quadcore/quadcore.c
index 45f405cec9..ac62981723 100644
--- a/src/cpu/amd/quadcore/quadcore.c
+++ b/src/cpu/amd/quadcore/quadcore.c
@@ -24,7 +24,7 @@
#include "cpu/amd/quadcore/quadcore_id.c"
-static inline u32 get_core_num_in_bsp(u32 nodeid)
+static u32 get_core_num_in_bsp(u32 nodeid)
{
u32 dword;
dword = pci_read_config32(NODE_PCI(nodeid, 3), 0xe8);
@@ -34,7 +34,7 @@ static inline u32 get_core_num_in_bsp(u32 nodeid)
}
#if SET_NB_CFG_54 == 1
-static inline u8 set_apicid_cpuid_lo(void)
+static u8 set_apicid_cpuid_lo(void)
{
// set the NB_CFG[54]=1; why the OS will be happy with that ???
msr_t msr;
@@ -46,12 +46,12 @@ static inline u8 set_apicid_cpuid_lo(void)
}
#else
-static inline void set_apicid_cpuid_lo(void) { }
+static void set_apicid_cpuid_lo(void) { }
#endif
-static inline void real_start_other_core(u32 nodeid, u32 cores)
+static void real_start_other_core(u32 nodeid, u32 cores)
{
u32 dword;
@@ -78,7 +78,7 @@ static inline void real_start_other_core(u32 nodeid, u32 cores)
}
//it is running on core0 of node0
-static inline void start_other_cores(void)
+static void start_other_cores(void)
{
u32 nodes;
u32 nodeid;
diff --git a/src/cpu/amd/quadcore/quadcore_id.c b/src/cpu/amd/quadcore/quadcore_id.c
index f67890bf8b..4597f6b70d 100644
--- a/src/cpu/amd/quadcore/quadcore_id.c
+++ b/src/cpu/amd/quadcore/quadcore_id.c
@@ -32,7 +32,7 @@ u32 read_nb_cfg_54(void)
return ( ( msr.hi >> (54-32)) & 1);
}
-static inline u32 get_initial_apicid(void)
+static u32 get_initial_apicid(void)
{
return ((cpuid_ebx(1) >> 24) & 0xff);
}
@@ -67,12 +67,12 @@ struct node_core_id get_node_core_id(u32 nb_cfg_54)
return id;
}
-static inline u32 get_core_num(void)
+static u32 get_core_num(void)
{
return (cpuid_ecx(0x80000008) & 0xff);
}
-static inline struct node_core_id get_node_core_id_x(void) {
+static struct node_core_id get_node_core_id_x(void) {
return get_node_core_id( read_nb_cfg_54() );
}