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/named_pipe_latency.cc b/aos/ipc_lib/named_pipe_latency.cc
index 2bd24f3..030852c 100644
--- a/aos/ipc_lib/named_pipe_latency.cc
+++ b/aos/ipc_lib/named_pipe_latency.cc
@@ -47,7 +47,13 @@
   // Sleep between 1 and 15 ms.
   ::std::uniform_int_distribution<> distribution(1000, 15000);
 
-  PinCurrentThreadToCPU(FLAGS_core);
+  {
+    cpu_set_t cpuset;
+    CPU_ZERO(&cpuset);
+    CPU_SET(FLAGS_core, &cpuset);
+
+    SetCurrentThreadAffinity(cpuset);
+  }
   SetCurrentThreadRealtimePriority(FLAGS_sender_priority);
   while (true) {
     const monotonic_clock::time_point wakeup_time =
@@ -125,7 +131,13 @@
     }
   });
 
-  PinCurrentThreadToCPU(FLAGS_core);
+  {
+    cpu_set_t cpuset;
+    CPU_ZERO(&cpuset);
+    CPU_SET(FLAGS_core, &cpuset);
+
+    SetCurrentThreadAffinity(cpuset);
+  }
   SetCurrentThreadRealtimePriority(FLAGS_receiver_priority);
   epoll.Run();
   UnsetCurrentThreadRealtimePriority();