Skip to content

Commit a972cd4

Browse files
committed
👷 conf: add LTS kernel
1 parent 10bceb4 commit a972cd4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/conf-window.cpp‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ namespace fs = std::filesystem;
9999

100100
namespace {
101101

102-
GENERATE_CONST_LOOKUP_OPTION_VALUES(kernel_name, "cachyos", "bore", "rc", "rt", "eevdf", "bmq")
102+
GENERATE_CONST_LOOKUP_OPTION_VALUES(kernel_name, "cachyos", "bore", "rc", "rt", "lts", "eevdf", "bmq")
103103
GENERATE_CONST_LOOKUP_OPTION_VALUES(hz_tick, "1000", "750", "600", "500", "300", "250", "100")
104104
GENERATE_CONST_LOOKUP_OPTION_VALUES(tickless_mode, "full", "idle", "perodic")
105105
GENERATE_CONST_LOOKUP_OPTION_VALUES(preempt_mode, "full", "lazy", "voluntary", "none")
@@ -113,8 +113,9 @@ static_assert(lookup_kernel_name("cachyos") == 0, "Invalid position");
113113
static_assert(lookup_kernel_name("bore") == 1, "Invalid position");
114114
static_assert(lookup_kernel_name("rc") == 2, "Invalid position");
115115
static_assert(lookup_kernel_name("rt") == 3, "Invalid position");
116-
static_assert(lookup_kernel_name("eevdf") == 4, "Invalid position");
117-
static_assert(lookup_kernel_name("bmq") == 5, "Invalid position");
116+
static_assert(lookup_kernel_name("lts") == 4, "Invalid position");
117+
static_assert(lookup_kernel_name("eevdf") == 5, "Invalid position");
118+
static_assert(lookup_kernel_name("bmq") == 6, "Invalid position");
118119

119120
constexpr auto get_kernel_name_path(std::string_view kernel_name) noexcept {
120121
using namespace std::string_view_literals;
@@ -470,6 +471,7 @@ ConfWindow::ConfWindow(QWidget* parent)
470471
<< tr("BORE - Burst-Oriented Response Enhancer")
471472
<< tr("RC - Release Candidate")
472473
<< tr("RT - Realtime kernel")
474+
<< tr("LTS - Long-term support kernel")
473475
<< tr("EEVDF")
474476
<< tr("BMQ (BitMap Queue)");
475477
options_page_ui_obj->main_combo_box->addItems(kernel_names);

0 commit comments

Comments
 (0)