Fix CPU load balancer bugs, scheduling points support for remote CPUs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 28s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 28s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user