diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-10-30 23:30:42 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-10-30 23:30:42 -0700 |
commit | 667d0786cf22c10131611f2f1d030224082662d8 (patch) | |
tree | b04c520cf7b4dfca60857765413e56aa40529c24 | |
parent | 2de6712ec47ce8aab21d8953c51005e6f2c71cd6 (diff) | |
parent | 3173dc0bcf3faee24d3e173fdf9584f03eee1971 (diff) | |
download | kati-android-o-mr1-iot-release-smart-display-r22.tar.gz |
Merge remote-tracking branch 'aosp/upstream'android-wear-8.0.0_r2android-o-mr1-iot-release-smart-display-r9android-o-mr1-iot-release-smart-display-r8android-o-mr1-iot-release-smart-display-r5android-o-mr1-iot-release-smart-display-r40.1Jandroid-o-mr1-iot-release-smart-display-r4android-o-mr1-iot-release-smart-display-r39android-o-mr1-iot-release-smart-display-r30android-o-mr1-iot-release-smart-display-r22android-o-mr1-iot-release-smart-display-r14android-o-mr1-iot-release-smart-clock-r6android-o-mr1-iot-release-smart-clock-r2android-o-mr1-iot-release-smart-clock-fsiandroid-o-mr1-iot-release-smart-clock-fcsandroid-o-mr1-iot-release-cube_r2android-o-mr1-iot-release-cube-fsiandroid-o-mr1-iot-release-cube-fcsandroid-n-iot-release-ihome-igv1nougat-iot-release
* aosp/upstream:
Improve regen performance by setting cpu affinity
Test: m nothing (with new ckati prebuilt)
Change-Id: I90eee540ad65b330d2d3f833e1bc7dc775102fff
-rw-r--r-- | regen.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -23,6 +23,7 @@ #include <mutex> #include <vector> +#include "affinity.h" #include "fileutil.h" #include "find.h" #include "func.h" @@ -429,6 +430,7 @@ class StampChecker { tp->Submit([this]() { string err; // TODO: Make glob cache thread safe and create a task for each glob. + SetAffinityForSingleThread(); for (GlobResult* gr : globs_) { if (CheckGlobResult(gr, &err)) { unique_lock<mutex> lock(mu_); @@ -442,6 +444,7 @@ class StampChecker { }); tp->Submit([this]() { + SetAffinityForSingleThread(); for (ShellResult* sr : commands_) { string err; if (CheckShellResult(sr, &err)) { |