From patchwork Wed Nov 20 19:29:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Pan X-Patchwork-Id: 3215091 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B5F7AC045B for ; Wed, 20 Nov 2013 19:29:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E946D2076B for ; Wed, 20 Nov 2013 19:29:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0436820775 for ; Wed, 20 Nov 2013 19:29:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754737Ab3KTT3k (ORCPT ); Wed, 20 Nov 2013 14:29:40 -0500 Received: from mga02.intel.com ([134.134.136.20]:29189 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754545Ab3KTT3j (ORCPT ); Wed, 20 Nov 2013 14:29:39 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 20 Nov 2013 11:29:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,738,1378882800"; d="scan'208";a="431049910" Received: from ultegra.jf.intel.com (HELO ultegra) ([10.24.1.229]) by fmsmga001.fm.intel.com with ESMTP; 20 Nov 2013 11:29:38 -0800 Date: Wed, 20 Nov 2013 11:29:35 -0800 From: Jacob Pan To: Peter Zijlstra Cc: Arjan van de Ven , lenb@kernel.org, rjw@rjwysocki.net, Eliezer Tamir , Chris Leech , David Miller , rui.zhang@intel.com, Mike Galbraith , Ingo Molnar , hpa@zytor.com, Thomas Gleixner , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Rusty Russell Subject: Re: [PATCH 7/7] preempt: Take away preempt_enable_no_resched() from modules Message-ID: <20131120112935.6be596e4@ultegra> In-Reply-To: <20131120191841.GY16796@laptop.programming.kicks-ass.net> References: <20131120160450.072555619@infradead.org> <20131120162736.760865926@infradead.org> <20131120105457.04f6e51e@ultegra> <20131120191841.GY16796@laptop.programming.kicks-ass.net> Organization: OTC X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.17; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, 20 Nov 2013 20:18:41 +0100 Peter Zijlstra wrote: > I think the below will cure both -- will fold in the proper patches > tomorrow, need to get away from the computer noaw. [Jacob Pan] looks good to me. one more thing for tomorrow :) --- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/kernel/softirq.c b/kernel/softirq.c index d3283d3..750e853 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -114,6 +114,7 @@ void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) if (preempt_count() == cnt) trace_preempt_off(CALLER_ADDR0, get_parent_ip(CALLER_ADDR1)); } +EXPORT_SYMBOL_GPL(__local_bh_disable_ip); #endif /* CONFIG_TRACE_IRQFLAGS */ static void __local_bh_enable(unsigned int cnt) @@ -169,7 +170,7 @@ void __local_bh_enable_ip(unsigned long ip, unsigned int cnt) #endif preempt_check_resched(); } - +EXPORT_SYMBOL_GPL(__local_bh_enable_ip); /* * We restart softirq processing for at most MAX_SOFTIRQ_RESTART times, * but break the loop if need_resched() is set or after 2 ms.