Messages in this thread |  | | From | "Luck, Tony" <> | Subject | RE: [PATCH 2/2] x86, reschedule: check to see if system is shutting down | Date | Fri, 10 Feb 2012 22:42:24 +0000 |
| |
- 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
|  |