Redesign reschedule points, allow one operation to reschedule many cpus at once
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m12s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m12s
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <proc/mutex.h>
|
||||
#include <proc/proc.h>
|
||||
#include <proc/procgroup.h>
|
||||
#include <proc/reschedule.h>
|
||||
#include <proc/resource.h>
|
||||
#include <sync/spin_lock.h>
|
||||
#include <sys/debug.h>
|
||||
@@ -76,9 +77,7 @@ struct proc_resource* proc_create_resource_mail (struct procgroup* procgroup, in
|
||||
return resource;
|
||||
}
|
||||
|
||||
bool proc_delete_resource (struct proc_resource* resource, struct cpu** reschedule_cpu) {
|
||||
bool reschedule = resource->ops.cleanup (resource, reschedule_cpu);
|
||||
void proc_delete_resource (struct proc_resource* resource, struct reschedule_ctx* rctx) {
|
||||
resource->ops.cleanup (resource, rctx);
|
||||
free (resource);
|
||||
|
||||
return reschedule;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user