get rid of even more fam10 and k8 warnings.
[coreboot.git] / src / northbridge / amd / amdfam10 / raminit_sysinfo_in_ram.c
index a7a69b338c6ada97a7daa4913914c6029532652d..ec07fea74a83808cda6cc3fc563a07a81df0ac85 100644 (file)
@@ -17,6 +17,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <delay.h>
 
 static void set_htic_bit(u8 i, u32 val, u8 bit)
 {
@@ -27,7 +28,7 @@ static void set_htic_bit(u8 i, u32 val, u8 bit)
        pci_write_config32(NODE_PCI(i, 0), HT_INIT_CONTROL, dword);
 }
 
-
+#ifdef UNUSED_CODE
 static u32 get_htic_bit(u8 i, u8 bit)
 {
        u32 dword;
@@ -42,10 +43,11 @@ static void wait_till_sysinfo_in_ram(void)
                /* give the NB a break, many CPUs spinning on one bit makes a
                 * lot of traffic and time is not too important to APs.
                 */
-               udelay_tsc(1000);
+               udelay(1000);
                if(get_htic_bit(0, 9)) return;
        }
 }
+#endif
 
 static void set_sysinfo_in_ram(u32 val)
 {