Lines Matching refs:shares
32 const char kCGroupSharesPath[] = "/sys/fs/cgroup/cpu/update-engine/cpu.shares";
45 LOG(ERROR) << "Cpu shares timeout source hasn't been destroyed.";
57 // If the shares were never set and there isn't a message loop instance,
65 bool CPULimiter::SetCpuShares(CpuShares shares) {
66 // Short-circuit to avoid re-setting the shares.
67 if (shares_ == shares)
70 std::string string_shares = base::IntToString(static_cast<int>(shares));
71 LOG(INFO) << "Setting cgroup cpu shares to " << string_shares;
74 LOG(ERROR) << "Failed to change cgroup cpu shares to " << string_shares
78 shares_ = shares;
79 LOG(INFO) << "CPU shares = " << static_cast<int>(shares_);