| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef CHROMEOS_SYSTEM_CORE_SCHEDULING_H_ |
| #define CHROMEOS_SYSTEM_CORE_SCHEDULING_H_ |
| #include "chromeos/chromeos_export.h" |
| // EnableCoreScheduVlingIfAvailable will turn on core scheduling for a process |
| void CHROMEOS_EXPORT EnableCoreSchedulingIfAvailable(); |
| // Returns true if core scheduling is supported in the kernel, and CPU has MDS |
| // or L1TF vulnerabilities. Core scheduling does not run on CPUs that are not |
| bool CHROMEOS_EXPORT IsCoreSchedulingAvailable(); |
| // Returns number of physical cores. |
| int CHROMEOS_EXPORT NumberOfProcessorsForCoreScheduling(); |
| #endif // CHROMEOS_SYSTEM_CORE_SCHEDULING_H_ |