Fix CPU load balancer bugs, scheduling points support for remote CPUs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 28s

This commit is contained in:
2026-02-05 23:44:32 +01:00
parent 5283787a80
commit 5fe9d0a158
19 changed files with 129 additions and 79 deletions

View File

@@ -11,6 +11,7 @@
struct proc;
struct procgroup;
struct cpu;
struct proc_resource {
int type;
@@ -21,12 +22,12 @@ struct proc_resource {
struct proc_mutex mutex;
} u;
struct {
bool (*cleanup) (struct proc_resource* resource);
bool (*cleanup) (struct proc_resource* resource, struct cpu** reschedule_cpu);
} ops;
};
struct proc_resource* proc_find_resource (struct procgroup* procgroup, int rid);
struct proc_resource* proc_create_resource_mutex (struct procgroup* procgroup, int rid);
bool proc_delete_resource (struct proc_resource* resource);
bool proc_delete_resource (struct proc_resource* resource, struct cpu** reschedule_cpu);
#endif // _KERNEL_PROC_RESOURCE_H