summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-28 08:25:05 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-28 08:25:53 +0100
commitb72f067f0daac88ebe66e3f714e517b995b48e7b (patch)
treea7a124e831ef9ec537f71614e3957f2b580735fa /Userland/Applications
parentaaf691c4efc1e43e83f13cdf403f69d89f889d38 (diff)
downloadserenity-b72f067f0daac88ebe66e3f714e517b995b48e7b.zip
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.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/SystemMonitor/ProcessModel.cpp8
-rw-r--r--Userland/Applications/SystemMonitor/ProcessModel.h2
2 files changed, 0 insertions, 10 deletions
diff --git a/Userland/Applications/SystemMonitor/ProcessModel.cpp b/Userland/Applications/SystemMonitor/ProcessModel.cpp
index 2c2c9a2d5c..d8eb125efe 100644
--- a/Userland/Applications/SystemMonitor/ProcessModel.cpp
+++ b/Userland/Applications/SystemMonitor/ProcessModel.cpp
@@ -102,8 +102,6 @@ String ProcessModel::column_name(int column) const
return "User";
case Column::Priority:
return "Pr";
- case Column::EffectivePriority:
- return "EPr";
case Column::Virtual:
return "Virtual";
case Column::Physical:
@@ -175,7 +173,6 @@ GUI::Variant ProcessModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
case Column::PGID:
case Column::SID:
case Column::Priority:
- case Column::EffectivePriority:
case Column::Virtual:
case Column::Physical:
case Column::DirtyPrivate:
@@ -223,8 +220,6 @@ GUI::Variant ProcessModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
return thread.current_state.user;
case Column::Priority:
return thread.current_state.priority;
- case Column::EffectivePriority:
- return thread.current_state.effective_priority;
case Column::Virtual:
return (int)thread.current_state.amount_virtual;
case Column::Physical:
@@ -296,8 +291,6 @@ GUI::Variant ProcessModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
return thread.current_state.user;
case Column::Priority:
return thread.current_state.priority;
- case Column::EffectivePriority:
- return thread.current_state.effective_priority;
case Column::Virtual:
return pretty_byte_size(thread.current_state.amount_virtual);
case Column::Physical:
@@ -398,7 +391,6 @@ void ProcessModel::update()
state.cpu = thread.cpu;
state.cpu_percent = 0;
state.priority = thread.priority;
- state.effective_priority = thread.effective_priority;
state.state = thread.state;
sum_ticks_scheduled += thread.ticks_user + thread.ticks_kernel;
sum_ticks_scheduled_kernel += thread.ticks_kernel;
diff --git a/Userland/Applications/SystemMonitor/ProcessModel.h b/Userland/Applications/SystemMonitor/ProcessModel.h
index 11f39cac76..a7db7aebca 100644
--- a/Userland/Applications/SystemMonitor/ProcessModel.h
+++ b/Userland/Applications/SystemMonitor/ProcessModel.h
@@ -53,7 +53,6 @@ public:
Processor,
State,
Priority,
- EffectivePriority,
User,
PID,
TID,
@@ -127,7 +126,6 @@ private:
String veil;
u32 cpu;
u32 priority;
- u32 effective_priority;
size_t amount_virtual;
size_t amount_resident;
size_t amount_dirty_private;