From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 14 Dec 2011 18:17:14 +0100 (CET) Received: from mail3.caviumnetworks.com ([12.108.191.235]:9355 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1903621Ab1LNRRI (ORCPT ); Wed, 14 Dec 2011 18:17:08 +0100 Received: from caexch01.caveonetworks.com (Not Verified[192.168.16.9]) by mail3.caviumnetworks.com with MailMarshal (v6,7,2,8378) id ; Wed, 14 Dec 2011 09:18:36 -0800 Received: from caexch01.caveonetworks.com ([192.168.16.9]) by caexch01.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 14 Dec 2011 09:17:06 -0800 Received: from dd1.caveonetworks.com ([64.2.3.195]) by caexch01.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 14 Dec 2011 09:17:06 -0800 Message-ID: <4EE8DA11.5020109@cavium.com> Date: Wed, 14 Dec 2011 09:17:05 -0800 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 MIME-Version: 1.0 To: Peter Zijlstra CC: David Daney , ralf@linux-mips.org, Linus Torvalds , Andrew Morton , linux-mips@linux-mips.org, Jeremy Fitzhardinge , linux-kernel@vger.kernel.org, Jason Baron Subject: Re: [PATCH] jump-label: initialize jump-label subsystem somewhat later References: <1323881315-23245-1-git-send-email-ddaney.cavm@gmail.com> <1323881470.28489.51.camel@twins> In-Reply-To: <1323881470.28489.51.camel@twins> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 14 Dec 2011 17:17:06.0203 (UTC) FILETIME=[34410EB0:01CCBA84] X-archive-position: 32095 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: david.daney@cavium.com Precedence: bulk X-list: linux-mips Return-Path: X-Keywords: X-UID: 11521 On 12/14/2011 08:51 AM, Peter Zijlstra wrote: > On Wed, 2011-12-14 at 08:48 -0800, David Daney wrote: >> From: David Daney >> >> commit 97ce2c88f9ad42e3c60a9beb9fca87abf3639faa breaks MIPS. >> >> The jump-lable initialization does I-Cache flushing after modifying >> code. On MIPS this is done by calling through the function pointer >> flush_icache_range(). This function pointer is initialized mm_init(). Actually I misspoke, for MIPS we need jump_label_init() after trap_init(), not mm_init(). >> >> As things stand, we cannot be calling jump_label_init() until after >> mm_init() completes, so we move the call down to satisfy this >> constraint. > > I'm fine as long as it stays before sched_init(), which it does. Jeremy > is this still early enough for you? > Just tested a revised patch that moves it to between trap_init() and mm_init(), I propose that we do that instead. New patch in a couple of minutes. David Daney