From owner-svn-src-stable@FreeBSD.ORG Wed Oct 17 11:30:26 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B20F7E5; Wed, 17 Oct 2012 11:30:26 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 61E768FC17; Wed, 17 Oct 2012 11:30:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9HBUQGd060437; Wed, 17 Oct 2012 11:30:26 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9HBUQg7060435; Wed, 17 Oct 2012 11:30:26 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201210171130.q9HBUQg7060435@svn.freebsd.org> From: Andriy Gapon Date: Wed, 17 Oct 2012 11:30:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r241638 - stable/8/sys/kern X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 11:30:26 -0000 Author: avg Date: Wed Oct 17 11:30:25 2012 New Revision: 241638 URL: http://svn.freebsd.org/changeset/base/241638 Log: MFC r241295: cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit Modified: stable/8/sys/kern/kern_cons.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/kern/ (props changed) Modified: stable/8/sys/kern/kern_cons.c ============================================================================== --- stable/8/sys/kern/kern_cons.c Wed Oct 17 11:30:14 2012 (r241637) +++ stable/8/sys/kern/kern_cons.c Wed Oct 17 11:30:25 2012 (r241638) @@ -353,7 +353,7 @@ cngetc(void) if (cn_mute) return (-1); while ((c = cncheckc()) == -1) - ; + cpu_spinwait(); if (c == '\r') c = '\n'; /* console input is always ICRNL */ return (c);