mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
Kernel+Userland: Remove unused "effective priority" from threads
This has been merged with the regular Thread::priority field after the recent changes to the scheduler.
This commit is contained in:
parent
aaf691c4ef
commit
b72f067f0d
10 changed files with 10 additions and 19 deletions
|
@ -97,7 +97,6 @@ Optional<HashMap<pid_t, Core::ProcessStatistics>> ProcessStatisticsReader::get_a
|
|||
thread.ticks_kernel = thread_object.get("ticks_kernel").to_u32();
|
||||
thread.cpu = thread_object.get("cpu").to_u32();
|
||||
thread.priority = thread_object.get("priority").to_u32();
|
||||
thread.effective_priority = thread_object.get("effective_priority").to_u32();
|
||||
thread.syscall_count = thread_object.get("syscall_count").to_u32();
|
||||
thread.inode_faults = thread_object.get("inode_faults").to_u32();
|
||||
thread.zero_faults = thread_object.get("zero_faults").to_u32();
|
||||
|
|
|
@ -51,7 +51,6 @@ struct ThreadStatistics {
|
|||
String state;
|
||||
u32 cpu;
|
||||
u32 priority;
|
||||
u32 effective_priority;
|
||||
String name;
|
||||
};
|
||||
|
||||
|
|
|
@ -183,6 +183,12 @@ RefPtr<Node> Node::append_child(NonnullRefPtr<Node> node, bool notify)
|
|||
return node;
|
||||
}
|
||||
|
||||
RefPtr<Node> Node::remove_child(NonnullRefPtr<Node> node)
|
||||
{
|
||||
TreeNode<Node>::remove_child(node);
|
||||
return node;
|
||||
}
|
||||
|
||||
RefPtr<Node> Node::insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool notify)
|
||||
{
|
||||
if (!child)
|
||||
|
|
|
@ -82,6 +82,7 @@ public:
|
|||
|
||||
RefPtr<Node> append_child(NonnullRefPtr<Node>, bool notify = true);
|
||||
RefPtr<Node> insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool notify = true);
|
||||
RefPtr<Node> remove_child(NonnullRefPtr<Node>);
|
||||
|
||||
virtual RefPtr<Layout::Node> create_layout_node();
|
||||
|
||||
|
|
|
@ -11,6 +11,6 @@ interface Node : EventTarget {
|
|||
|
||||
Node appendChild(Node node);
|
||||
Node insertBefore(Node node, Node? child);
|
||||
|
||||
Node removeChild(Node child);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue