From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760614AbcAKWy5 (ORCPT ); Mon, 11 Jan 2016 17:54:57 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52432 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758738AbcAKWy4 (ORCPT ); Mon, 11 Jan 2016 17:54:56 -0500 Date: Mon, 11 Jan 2016 14:54:55 -0800 From: Andrew Morton To: Michal Hocko Cc: Mel Gorman , Tetsuo Handa , David Rientjes , Linus Torvalds , Oleg Nesterov , Hugh Dickins , Andrea Argangeli , Rik van Riel , , LKML , Michal Hocko Subject: Re: [PATCH 1/2] mm, oom: introduce oom reaper Message-Id: <20160111145455.51e183aed810f7d366ea50a0@linux-foundation.org> In-Reply-To: <1452094975-551-2-git-send-email-mhocko@kernel.org> References: <1452094975-551-1-git-send-email-mhocko@kernel.org> <1452094975-551-2-git-send-email-mhocko@kernel.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Jan 2016 16:42:54 +0100 Michal Hocko wrote: > - use subsys_initcall instead of module_init - Paul Gortmaker That's pretty much the only change between what-i-have and what-you-sent, so I'll just do this as a delta: --- a/mm/oom_kill.c~mm-oom-introduce-oom-reaper-v4 +++ a/mm/oom_kill.c @@ -32,12 +32,11 @@ #include #include #include -#include #include #include #include #include -#include +#include #include #include "internal.h" @@ -542,7 +541,7 @@ static int __init oom_init(void) } return 0; } -module_init(oom_init) +subsys_initcall(oom_init) #else static void wake_oom_reaper(struct mm_struct *mm) { _