Revise previous patch based on feedback.

Change-Id: Ica39399d35c961e13cf401784ce024b6f85fe00a
diff --git a/vm/native/dalvik_system_Zygote.cpp b/vm/native/dalvik_system_Zygote.cpp
index cb8172f..f893889 100644
--- a/vm/native/dalvik_system_Zygote.cpp
+++ b/vm/native/dalvik_system_Zygote.cpp
@@ -481,8 +481,10 @@
 #endif
 }
 
-#ifdef __arm__
 static bool needsNoRandomizeWorkaround() {
+#if !defined(__arm__)
+    return false;
+#else
     int major;
     int minor;
     struct utsname uts;
@@ -496,8 +498,8 @@
 
     // Kernels before 3.4.* need the workaround.
     return (major < 3) || ((major == 3) && (minor < 4));
-}
 #endif
+}
 
 /*
  * Utility routine to fork zygote and specialize the child process.
@@ -625,7 +627,6 @@
             dvmAbort();
         }
 
-#ifdef __arm__
         if (needsNoRandomizeWorkaround()) {
             int current = personality(0xffffFFFF);
             int success = personality((ADDR_NO_RANDOMIZE | current));
@@ -633,7 +634,6 @@
                 ALOGW("Personality switch failed. current=%d error=%d\n", current, errno);
             }
         }
-#endif
 
         err = setCapabilities(permittedCapabilities, effectiveCapabilities);
         if (err != 0) {