<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/acpi/processor_idle.c, branch v4.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.0</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-04-03T11:18:25Z</updated>
<entry>
<title>cpuidle: ACPI: do not overwrite name and description of C0</title>
<updated>2015-04-03T11:18:25Z</updated>
<author>
<name>Thomas Schlichter</name>
<email>thomas.schlichter@web.de</email>
</author>
<published>2015-03-31T18:24:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c7e8bdf5872c5a8f5a6494e16fe839c38a0d3d3d'/>
<id>urn:sha1:c7e8bdf5872c5a8f5a6494e16fe839c38a0d3d3d</id>
<content type='text'>
Fix a bug that leads to showing the name and description of C-state C0
as "&lt;null&gt;" in sysfs after the ACPI C-states changed (e.g. after AC-&gt;DC
or DC-&gt;AC
transition).

The function poll_idle_init() in drivers/cpuidle/driver.c initializes the
state 0 during cpuidle_register_driver(), so we better do not overwrite it
again with '\0' during acpi_processor_cst_has_changed().

Signed-off-by: Thomas Schlichter &lt;thomas.schlichter@web.de&gt;
Reviewed-by: Bartlomiej Zolnierkiewicz &lt;b.zolnierkie@samsung.com&gt;
Cc: 3.13+ &lt;stable@vger.kernel.org&gt; # 3.13+
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / idle: Implement -&gt;enter_freeze callback routine</title>
<updated>2015-02-15T18:40:10Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-11T04:04:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5f5081852038d9a7b309190730bfb724b413235e'/>
<id>urn:sha1:5f5081852038d9a7b309190730bfb724b413235e</id>
<content type='text'>
Add an -&gt;enter_freeze callback routine, acpi_idle_enter_freeze(), to
the ACPI cpuidle driver and point -&gt;enter_freeze to it for all the
C2-type and C3-type states that don't need to fall back to C1
(which may be halt-induced and that will re-enable interrupts on
exit from idle, which -&gt;enter_freeze cannot do).

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
Acked-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
</content>
</entry>
<entry>
<title>ACPI / cpuidle: Common callback routine for entering states</title>
<updated>2015-02-03T20:55:11Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-03T20:55:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6491bc0c616969f7ae1fcb30a8823c333e2944c7'/>
<id>urn:sha1:6491bc0c616969f7ae1fcb30a8823c333e2944c7</id>
<content type='text'>
Introduce a common -&gt;enter callback routine for the ACPI cpuidle
driver, acpi_idle_enter(), which helps to reduce code complexity,
size and duplication and prevents theoretically possible failues that
an incorrect routine may be run to enter the given idle state due to
a firmware bug (eg. when _CST returns a different set of states for
each processor).

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / cpuidle: Merge acpi_idle_enter_c1() and acpi_idle_enter_simple()</title>
<updated>2015-02-03T20:54:48Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-03T20:54:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d2cecb3d66e39765f3dec8adfb88c322e709b06d'/>
<id>urn:sha1:d2cecb3d66e39765f3dec8adfb88c322e709b06d</id>
<content type='text'>
acpi_idle_enter_c1() and acpi_idle_enter_simple() are close enough to
each other that they can be merged into one function which reduces
duplication of code quite a bit.

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / cpuidle: Drop flags.bm_check tests from acpi_idle_enter_bm()</title>
<updated>2015-02-02T22:56:03Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-02T22:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2a7383529109252a7f9d81639784e5fddb4f3df4'/>
<id>urn:sha1:2a7383529109252a7f9d81639784e5fddb4f3df4</id>
<content type='text'>
Since acpi_idle_enter_bm() is only used if flags.bm_check is set for
the given acpi_processor object, it doesn't make sense to check that
flag in there.

For this reason, drop flags.bm_check tests (and some code depending
on them) from acpi_idle_enter_bm().

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / cpuidle: Clean up white space in a switch statement</title>
<updated>2015-02-02T22:55:55Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-02T22:55:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5f97d6628640842229824c9f4fd433621c5a7b72'/>
<id>urn:sha1:5f97d6628640842229824c9f4fd433621c5a7b72</id>
<content type='text'>
White space in the switch statement in acpi_processor_setup_cpuidle_states()
does not adhere to the kernel coding style and that makes the code
difficult to read.  Clean that up.

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / cpuidle: Drop irrelevant comment from acpi_idle_enter_simple()</title>
<updated>2015-02-02T22:55:47Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-02T22:55:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=de6cc4ec6ea05de1933dc3b832013960af49c852'/>
<id>urn:sha1:de6cc4ec6ea05de1933dc3b832013960af49c852</id>
<content type='text'>
The comment about bus master disable in acpi_idle_enter_simple() is
irrelevant, because the function doesn't disable bus mastering, so
drop it.

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / cpuidle: Clean up fallback to C1 checks</title>
<updated>2015-02-02T22:55:42Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-02T22:55:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=adcb2623f149abd4d4783ecada543a01e25d1c04'/>
<id>urn:sha1:adcb2623f149abd4d4783ecada543a01e25d1c04</id>
<content type='text'>
acpi_idle_enter_simple() and acpi_idle_enter_bm() both check
if C2/C3 type entry is supported on MP in the same way, so move
those checks to a separate function and call it from both
places (and it doesn't need to check if the state type is not
C1, because the functions in question won't be called otherwise).

While at it, use IS_ENABLED() for the CONFIG_HOTPLUG_CPU check.

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / cpuidle: Drop unnecessary calls from -&gt;enter callback routines</title>
<updated>2015-02-02T22:55:17Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-02T22:55:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=67f592c8f681061d69c621b97a868e679c8a77be'/>
<id>urn:sha1:67f592c8f681061d69c621b97a868e679c8a77be</id>
<content type='text'>
acpi_idle_enter_simple() and acpi_idle_enter_bm() don't need to
call sched_clock_idle_sleep/wakeup_event(), because that's taken
care of by the core already.  Namely, sched_clock_idle_sleep_event()
is called by tick_nohz_start_idle() called by __tick_nohz_idle_enter()
which in turn is called by tick_nohz_idle_enter() and that is called
by cpu_idle_loop().  Analogously for sched_clock_idle_wakeup_event().

For this reason, drop those calls from the ACPI cpuidle driver's
-&gt;enter callback routines.

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / cpuidle: Drop unnecessary calls from acpi_idle_do_entry()</title>
<updated>2015-02-02T22:55:08Z</updated>
<author>
<name>Rafael J. Wysocki</name>
<email>rafael.j.wysocki@intel.com</email>
</author>
<published>2015-02-02T22:55:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b00783fd90388d221dabd4df2affeea7da2363cd'/>
<id>urn:sha1:b00783fd90388d221dabd4df2affeea7da2363cd</id>
<content type='text'>
Since the cpuidle core calls stop_critical_timings() and
start_critical_timings() around the execution of -&gt;enter callbacks,
acpi_idle_do_entry() doesn't need to do that (and really shouldn't).

Also using "inline" on it is pointless and the kerneldoc entry does
not reflect the actual situation any more.

Fix all of the above.

Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
</feed>
