Commit df7ceeb4 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds

[PATCH] Trivial apm update: eliminate 0 initializers

Second in a series of patches from Thomas Hood.

This patch eliminates the 0 initializers on three
static variables inside the apm_cpu_idle function.
These initializers are superfluous.

The initializers are replaced with comments whose
purpose is to indicate that the code relies upon the
fact that these variables are initialized to zero
at load time.
parent e10542c9
......@@ -785,9 +785,9 @@ extern void default_idle(void);
static void apm_cpu_idle(void)
{
static int use_apm_idle = 0;
static unsigned int last_jiffies = 0;
static unsigned int last_stime = 0;
static int use_apm_idle; /* = 0 */
static unsigned int last_jiffies; /* = 0 */
static unsigned int last_stime; /* = 0 */
int apm_is_idle = 0;
unsigned int jiffies_since_last_check = jiffies - last_jiffies;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment