Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753131AbaAYVIY (ORCPT ); Sat, 25 Jan 2014 16:08:24 -0500 Received: from mail-la0-f50.google.com ([209.85.215.50]:48429 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752641AbaAYVIW (ORCPT ); Sat, 25 Jan 2014 16:08:22 -0500 From: Mikael Pettersson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21220.10175.311714.796806@gargle.gargle.HOWL> Date: Sat, 25 Jan 2014 22:08:15 +0100 To: Mikulas Patocka Cc: Mikael Pettersson , Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] ia64 ski emulator patches In-Reply-To: References: <21218.28095.779306.523187@gargle.gargle.HOWL> <21219.63903.326798.277717@gargle.gargle.HOWL> X-Mailer: VM 8.1.2 under 24.1.1 (x86_64-redhat-linux-gnu) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mikulas Patocka writes: > > > On Sat, 25 Jan 2014, Mikael Pettersson wrote: > > > My ski patches are in > > for now. I'll post the kernel patches to linux-ia64 @ vger in a few minutes. > > > > /Mikael > > Thanks for the patches. > > Isn't this subject to races? - could it lock up if the signal happens just > before the pause syscall? > > + case SSC_HALT_LIGHT: > + /* Sleep until SIGIO or SIGALRM is received; this relies on > + keyboard/ethernet input being detected via SIGIO, and the > + ITC now being emulated via setitimer() and SIGALRM. */ > + pause (); > + break; > + Thanks for the review. You're right, the pause mustn't happen if itc_itimer_fired == 1. Let me ponder this for a while... /Mikael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/