From: akpm@linux-foundation.org Subject: + kernel-provide-a-__smp_call_function_single-stub-for-config_smp.patch added to -mm tree Date: Fri, 01 Nov 2013 14:58:17 -0700 Message-ID: <527423f9.yle/DlOspE3kJYOL%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:54823 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753889Ab3KAV6S (ORCPT ); Fri, 1 Nov 2013 17:58:18 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, jack@suse.cz, hch@lst.de, axboe@kernel.dk, hch@infradead.org Subject: + kernel-provide-a-__smp_call_function_single-stub-for-config_smp.patch added to -mm tree To: hch@infradead.org,axboe@kernel.dk,hch@lst.de,jack@suse.cz From: akpm@linux-foundation.org Date: Fri, 01 Nov 2013 14:58:17 -0700 The patch titled Subject: kernel: provide a __smp_call_function_single stub for !CONFIG_SMP has been added to the -mm tree. Its filename is kernel-provide-a-__smp_call_function_single-stub-for-config_smp.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kernel-provide-a-__smp_call_function_single-stub-for-config_smp.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kernel-provide-a-__smp_call_function_single-stub-for-config_smp.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Christoph Hellwig Subject: kernel: provide a __smp_call_function_single stub for !CONFIG_SMP Signed-off-by: Christoph Hellwig Cc: Jan Kara Cc: Jens Axboe Signed-off-by: Andrew Morton --- kernel/up.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff -puN kernel/up.c~kernel-provide-a-__smp_call_function_single-stub-for-config_smp kernel/up.c --- a/kernel/up.c~kernel-provide-a-__smp_call_function_single-stub-for-config_smp +++ a/kernel/up.c @@ -22,6 +22,17 @@ int smp_call_function_single(int cpu, vo } EXPORT_SYMBOL(smp_call_function_single); +void __smp_call_function_single(int cpu, struct call_single_data *csd, + int wait) +{ + unsigned long flags; + + local_irq_save(flags); + csd->func(csd->info); + local_irq_restore(flags); +} +EXPORT_SYMBOL(__smp_call_function_single); + int on_each_cpu(smp_call_func_t func, void *info, int wait) { unsigned long flags; _ Patches currently in -mm which might be from hch@infradead.org are hfsplus-add-metadata-files-clump-size-calculation-functionality.patch hfsplus-implement-attributes-files-header-node-initialization-code.patch hfsplus-implement-attributes-files-header-node-initialization-code-v2.patch hfsplus-implement-attributes-file-creation-functionality.patch hfsplus-implement-attributes-file-creation-functionality-v2.patch linux-next.patch revert-softirq-add-support-for-triggering-softirq-work-on-softirqs.patch kernel-remove-config_use_generic_smp_helpers.patch kernel-provide-a-__smp_call_function_single-stub-for-config_smp.patch kernel-fix-generic_exec_single-indication.patch llists-move-llist_reverse_order-from-raid5-to-llistc.patch kernel-use-lockless-list-for-smp_call_function_single.patch blk-mq-use-__smp_call_function_single-directly.patch