Home
last modified time | relevance | path

Searched refs:advisor_ctx (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/mm/
Dksm.c326 struct advisor_ctx { struct
332 static struct advisor_ctx advisor_ctx; variable
354 advisor_ctx = (const struct advisor_ctx){ 0 }; in set_advisor_defaults()
363 advisor_ctx.start_scan = ktime_get(); in advisor_start_scan()
370 static inline unsigned long prev_scan_time(struct advisor_ctx *ctx, in prev_scan_time()
417 scan_time = div_s64(ktime_ms_delta(ktime_get(), advisor_ctx.start_scan), in scan_time_advisor()
423 cpu_time_diff = cpu_time - advisor_ctx.cpu_time; in scan_time_advisor()
428 last_scan_time = prev_scan_time(&advisor_ctx, scan_time); in scan_time_advisor()
440 change = ewma(advisor_ctx.change, change); in scan_time_advisor()
456 advisor_ctx.change = change; in scan_time_advisor()
[all …]