Searched refs:sg_ctx (Results 1 – 1 of 1) sorted by relevance
| /linux/drivers/virt/ |
| H A D | steal_governor.c | 48 static struct steal_governor sg_ctx = { variable 85 module_param_cb(interval_ms, &interval_ms_ops, &sg_ctx.interval_ms, 0444); 111 module_param_cb(high_threshold, &high_threshold_ops, &sg_ctx.high_threshold, 0444); 115 module_param_named(low_threshold, sg_ctx.low_threshold, uint, 0444); 221 delta_ns = ktime_to_ns(ktime_sub(now, sg_ctx.time)); in steal_governor_loop() 229 delta_steal = curr_steal > sg_ctx.steal ? curr_steal - sg_ctx.steal : 0; in steal_governor_loop() 230 sg_ctx.steal = curr_steal; in steal_governor_loop() 231 sg_ctx.time = now; in steal_governor_loop() 241 if (steal_ratio > sg_ctx.high_threshold) in steal_governor_loop() 243 else if (steal_ratio <= sg_ctx.low_threshold) in steal_governor_loop() [all …]
|