Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Oct 2010 08:07:49 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_shutdown.c
Message-ID:  <201010090808.o99889iF013471@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
avg         2010-10-09 08:07:49 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_shutdown.c 
  Log:
  SVN rev 213648 on 2010-10-09 08:07:49Z by avg
  
  panic_cpu variable should be volatile
  
  This is to prevent caching of its value in a register when it is checked
  and modified by multiple CPUs in parallel.
  Also, move the variable  into the scope of the only function that uses it.
  
  Reviewed by:    jhb
  Hint from:      mdf
  MFC after:      1 week
  
  Revision  Changes    Path
  1.206     +3 -4      src/sys/kern/kern_shutdown.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010090808.o99889iF013471>