lkml.org 
[lkml]   [2012]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 2/2] x86, reschedule: check to see if system is shutting down
Date
-		WARN_ON(1);
+ if (atomic_read(&stopping_cpu) == -1)
+ /* system is not shutting down.. yell */
+ WARN_ON(1);

Should that be written as:

/* system is not shutting down.. yell */
WARN_ON(atomic_read(&stopping_cpu) == -1);

the
if (something)
WARN_ON(1);

looks weird.

-Tony


\
 
 \ /
  Last update: 2012-02-11 00:15    [W:0.032 / U:4.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site