Simplify aos::Init

Most of the variants were to deal with core, which has been gone for a
year.  Simplify those all into InitGoogle.

InitGoogle should be renamed to Init at some point.  It does everything
now.

Change-Id: I738ee03e9c5b2e6348ef33302835f915df68011f
diff --git a/aos/ipc_lib/ipc_comparison.cc b/aos/ipc_lib/ipc_comparison.cc
index 6435ee7..f5614a6 100644
--- a/aos/ipc_lib/ipc_comparison.cc
+++ b/aos/ipc_lib/ipc_comparison.cc
@@ -811,7 +811,13 @@
     if (FLAGS_server_priority > 0) {
       SetCurrentThreadRealtimePriority(FLAGS_server_priority);
     }
-    PinCurrentThreadToCPU(FLAGS_server_cpu);
+    {
+      cpu_set_t cpuset;
+      CPU_ZERO(&cpuset);
+      CPU_SET(FLAGS_server_cpu, &cpuset);
+
+      SetCurrentThreadAffinity(cpuset);
+    }
 
     while (!done) {
       const PingPongerInterface::Data *data = ping_ponger->Wait();
@@ -826,7 +832,13 @@
   if (FLAGS_client_priority > 0) {
     SetCurrentThreadRealtimePriority(FLAGS_client_priority);
   }
-  PinCurrentThreadToCPU(FLAGS_client_cpu);
+  {
+    cpu_set_t cpuset;
+    CPU_ZERO(&cpuset);
+    CPU_SET(FLAGS_client_cpu, &cpuset);
+
+    SetCurrentThreadAffinity(cpuset);
+  }
 
   // Warm everything up.
   for (int i = 0; i < 1000; ++i) {
@@ -899,9 +911,7 @@
       "\ttcp\n"
       "\ttcp_nodelay\n"
       "\tudp\n");
-  ::gflags::ParseCommandLineFlags(&argc, &argv, true);
-
-  ::aos::InitNRT();
+  ::aos::InitGoogle(&argc, &argv);
 
   return ::aos::Main(argc, argv);
 }