Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp211291ybk; Thu, 14 May 2020 21:35:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcyIZrSqUhCLPcnOwoYlEFGbryEsNTFrBG5yVh8reV0aDNvSrHwTBoK7eU7jQ3x5OZ9o6L X-Received: by 2002:a50:8d5e:: with SMTP id t30mr1122809edt.332.1589517343233; Thu, 14 May 2020 21:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589517343; cv=none; d=google.com; s=arc-20160816; b=eIZdOuA97HISxyxA2XwydEEVbtOhAmAiw7T5UQbYwwH5nELm7EcX8MwtJglMZXneuR //0s8/q7bZr+9lW25kf0g3RaZO2Yj3H385lUmRl3IHG+7XvIiyFb9txq8KF00Hcz3w/r oiL3cU33ggFkO0fGb3+VSFNmDm9YDsqCchegW7DhPCNBTw07RXDiBsepPht++5vxPh03 Gi0F2ICBKd2Ik6s0gZ0FRxKWQzgcDVY9jqd6BlliBIwVM+H4YfUGkGIkmDsJv290MDEA Hm8hPgZO6QJhVN+BZIQV8MBHsfbDQ1hVpGc2/s8qfCWR8qQdzX4Rxi/+IuLqloWeXA3d 2nSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ZeOmqDBxKrNbkAntRQrje/ZRqJpdY0BfR5sMPT1uJwI=; b=Q3zia2ZQit++xy7A3WSO0dQgPxQsSMAtchzaJBqiRQdR3DRDch/K1W2yPWn2kaItrF ZlWvOhnTZkDcnc8QShLC/aRNlq0YpLpJ1I6Wh1oPf1uKmRRtJ47N2GkWBoTOPJE8f+Sv RAdH06ZQEdJ6S9qmc8v2IyGhs4NOxoW691LmikTPpQaUBcszElEtMsG9DNLzCe1/+6Mm dcTNYJs2TgcnCqZ9MTK55T7aB0YdMX2FUTJOtPCBZmthMY5B9hWROWTcflkDQdyedoAf ncKHLUjBU5yWL6Mmu2u0A0g2ylL6ciiVJRwg9DTArAR3vh/9bFDsBZXiF0GB7WD52UC7 +JOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si546310ejh.219.2020.05.14.21.35.19; Thu, 14 May 2020 21:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726223AbgEOEd4 (ORCPT + 99 others); Fri, 15 May 2020 00:33:56 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4845 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725616AbgEOEd4 (ORCPT ); Fri, 15 May 2020 00:33:56 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 212CB54EA7F1D3547B1B; Fri, 15 May 2020 12:33:53 +0800 (CST) Received: from use12-sp2.huawei.com (10.67.189.174) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 15 May 2020 12:33:47 +0800 From: Xiaoming Ni To: , , , , , , , , , , , , , , , , , CC: , , , Subject: [PATCH 0/4] Move the sysctl interface to the corresponding feature code file Date: Fri, 15 May 2020 12:33:40 +0800 Message-ID: <1589517224-123928-1-git-send-email-nixiaoming@huawei.com> X-Mailer: git-send-email 1.8.5.6 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.189.174] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use register_sysctl() to register the sysctl interface to avoid merge conflicts when different features modify sysctl.c at the same time. Here, the sysctl interfaces of hung task and watchdog are moved to the corresponding feature code files https://lkml.org/lkml/2020/5/11/1419 Xiaoming Ni (4): hung_task: Move hung_task syscl interface to hung_task_sysctl.c proc/sysctl: add shared variables -1 watchdog: move watchdog sysctl to watchdog.c sysctl: Add register_sysctl_init() interface fs/proc/proc_sysctl.c | 2 +- include/linux/sched/sysctl.h | 8 +-- include/linux/sysctl.h | 3 + kernel/Makefile | 4 +- kernel/hung_task.c | 6 +- kernel/hung_task.h | 21 ++++++ kernel/hung_task_sysctl.c | 66 +++++++++++++++++ kernel/sysctl.c | 168 ++++++------------------------------------- kernel/watchdog.c | 101 ++++++++++++++++++++++++++ 9 files changed, 219 insertions(+), 160 deletions(-) create mode 100644 kernel/hung_task.h create mode 100644 kernel/hung_task_sysctl.c -- 1.8.5.6