Author: jhibbits
Date: Sat Feb  9 23:19:33 2019
New Revision: 343946
URL: https://svnweb.freebsd.org/changeset/base/343946

Log:
  powerpc: Fix AIM build
  
  cpu_idle_e500mc is only used in booke, so ignore it completely in AIM.
  
  MFC after:    2 weeks
  MFC with:     r343944

Modified:
  head/sys/powerpc/powerpc/cpu.c

Modified: head/sys/powerpc/powerpc/cpu.c
==============================================================================
--- head/sys/powerpc/powerpc/cpu.c      Sat Feb  9 21:33:32 2019        
(r343945)
+++ head/sys/powerpc/powerpc/cpu.c      Sat Feb  9 23:19:33 2019        
(r343946)
@@ -89,7 +89,9 @@ int powerpc_pow_enabled;
 void (*cpu_idle_hook)(sbintime_t) = NULL;
 static void    cpu_idle_60x(sbintime_t);
 static void    cpu_idle_booke(sbintime_t);
+#ifdef BOOKE_E500
 static void    cpu_idle_e500mc(sbintime_t sbt);
+#endif
 #if defined(__powerpc64__) && defined(AIM)
 static void    cpu_idle_powerx(sbintime_t);
 static void    cpu_idle_power9(sbintime_t);
@@ -756,6 +758,7 @@ cpu_idle_60x(sbintime_t sbt)
 #endif
 }
 
+#ifdef BOOKE_E500
 static void
 cpu_idle_e500mc(sbintime_t sbt)
 {
@@ -765,6 +768,7 @@ cpu_idle_e500mc(sbintime_t sbt)
         */
        __asm __volatile(".long 0x7c00007c");
 }
+#endif
 
 static void
 cpu_idle_booke(sbintime_t sbt)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to