From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757951Ab2FUSW0 (ORCPT ); Thu, 21 Jun 2012 14:22:26 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:41787 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755905Ab2FUSWZ (ORCPT ); Thu, 21 Jun 2012 14:22:25 -0400 Message-ID: <1340302944.22218.1.camel@joe2Laptop> Subject: Re: [PATCH] printk: Add printk_flush() to force buffered text to console From: Joe Perches To: Steven Rostedt Cc: Greg Kroah-Hartman , Ingo Molnar , Fengguang Wu , LKML , Linus Torvalds , "kay.sievers" , "Paul E. McKenney" , Ingo Molnar , Andrew Morton Date: Thu, 21 Jun 2012 11:22:24 -0700 In-Reply-To: <1340302623.22065.9.camel@joe2Laptop> References: <20120614154153.GD17140@kroah.com> <1339693625.13377.242.camel@gandalf.stny.rr.com> <20120615042233.GA10973@localhost> <20120615043017.GA9587@kroah.com> <20120615120430.GB23681@gmail.com> <20120615231318.GD8205@kroah.com> <1339804415.25903.63.camel@gandalf.stny.rr.com> <20120618230337.GB23627@kroah.com> <1340069326.25903.177.camel@gandalf.stny.rr.com> <20120620122549.GA10561@gmail.com> <20120621171338.GF3270@kroah.com> <1340300509.27036.185.camel@gandalf.stny.rr.com> <1340302623.22065.9.camel@joe2Laptop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2012-06-21 at 11:17 -0700, Joe Perches wrote: > bool printk_set_buffering(bool enable) > { > bool old_state = printk_buffered; > printk_buffered = enable; I suppose that should really be a counter with an atomic inc/dec.