Projects
home:Eustace:branches:Eulaceura:Factory
irqbalance
_service:obs_scm:feature-add-ability-to-set-hin...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:feature-add-ability-to-set-hintpolicy-during-runtime.patch of Package irqbalance
From 7db6af3a25c9742febce616081a723e1c92889d1 Mon Sep 17 00:00:00 2001 From: BiaoXiang Ye <yebiaoxiang@huawei.com> Date: Wed, 1 Jul 2020 12:05:33 +0800 Subject: [PATCH] feature: add ability to set hintpolicy during runtime irqbalance adds default config --hintpolicy=subset, so we need provide the ability to set hintpolicy back to ignore during runtime. --- irqbalance.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/irqbalance.c b/irqbalance.c index 859fd6a..ffbb191 100644 --- a/irqbalance.c +++ b/irqbalance.c @@ -538,6 +538,15 @@ gboolean sock_handle(gint fd, GIOCondition condition, gpointer user_data __attri cpu_ban_string = NULL; } need_rescan = 1; + } else if (!(strncmp(buff + strlen("settings "), "hintpolicy ", + strlen("hintpolicy ")))) { + if (!(strncmp(buff + strlen("settings hintpolicy "), "ignore", + strlen("ignore")))) { + hint_enabled = 0; + } else if (!(strncmp(buff + strlen("settings hintpolicy "), + "subset", strlen("subset")))) { + hint_enabled = 1; + } } } if (!strncmp(buff, "setup", strlen("setup"))) { -- 2.23.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2