1 #include "cpu_contract.h"
3 int get_cpu_vres(contract_t contract, qres_sid_t *vres)
8 int set_cpu_vres(contract_t contract, qres_sid_t vres)
13 int get_cpu_params(contract_t *contract, cpu_params_t *cpu_params)
15 /* core contract parameters */
16 cpu_params->Q_min = timespec_to_usec(contract->budget_min);
17 cpu_params->P = timespec_to_usec(contract->period_max);
18 /* non-core contract parameters */
19 cpu_params->Q = timespec_to_usec(contract->budget_max);
20 /* AQuoSA specific configuration */
21 cpu_params->flags = 0x000;
22 cpu_params->flags |= QOS_F_PERSISTENT;
23 /* if we're negotiating for the service thread create
25 if (contract == &service_th_contract) {
26 qres_contract.flags |= QOS_F_SOFT;
29 cpu_params->timeout = 0;
32 int set_cpu_params(contract_t *contract, cpu_params_t *cpu_params)