geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
geopm_imbalancer.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef GEOPM_IMBALANCER_H_INCLUDE
7 #define GEOPM_IMBALANCER_H_INCLUDE
8 
9 #include "geopm_public.h"
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
17  int GEOPM_PUBLIC
18  geopm_imbalancer_frac(double frac);
20  int GEOPM_PUBLIC
23  int GEOPM_PUBLIC
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 #endif
int GEOPM_PUBLIC geopm_imbalancer_frac(double frac)
Used to set a delay frac that will sleep for the given fraction of the region runtime.
Definition: Imbalancer.cpp:104
int GEOPM_PUBLIC geopm_imbalancer_enter(void)
Sets the entry time for the imbalanced region.
Definition: Imbalancer.cpp:116
int GEOPM_PUBLIC geopm_imbalancer_exit(void)
Spins until the region has been extended by the previously specified delay.
Definition: Imbalancer.cpp:128