Revert "compressed: Makefile: fix typo"

This reverts commit 419712d1a34634a720310d8594c85ea0c3c7d599.
Revert "LZ4: compression/decompression signedness mismatch (v2)"

This reverts commit ac76a1697a11eb6edae87876611c1dbaf321ed6e.
Revert "crypto-add-lz4-cryptographic-api-fix"

This reverts commit e4e61b09a8d84b22e300546eb80f8c39247ae744.
Revert "crypto: add lz4 Cryptographic API"

This reverts commit 7dd1f21fb9e38532ab1dcef6a2c7d674329870c9.
Revert "lib-add-lz4-compressor-module-fix"

This reverts commit 8e634925f4a7b3f4b7ab5308f8d9fb693d3270b2.
Revert "lib: add lz4 compressor module"

This reverts commit 03759c6013405c4ddb107298ca3bcf0612ad3533.
Revert "arm: Remove enforced Os flag for LZ4 decompressor"

This reverts commit 889f369b10816291e3eb8259c2fe57eef9ec0deb.
Revert "arm: add support for LZ4-compressed kernel"

This reverts commit 03f62e63f935dd01bc42aaa482e3746d8f3557de.
Revert "kbuild: fix for updated LZ4 tool with the new streaming format"

This reverts commit 06dcbab417b4131026de54108a16998e6174641d.
Revert "lib: add support for LZ4-compressed kernel"

This reverts commit 3f93a431388bad44564038a90e0244e5a9fac5d4.
Revert "decompressor: add LZ4 decompressor module"

This reverts commit 58db75c8f993581315b394f4172d2b68cc843611.
cpuidle: move field disable from per-driver to per-cpu

Andrew J.Schorr raises a question.  When he changes the disable setting on
a single CPU, it affects all the other CPUs.  Basically, currently, the
disable field is per-driver instead of per-cpu.  All the C states of the
same driver are shared by all CPU in the same machine.

The patch changes the `disable' field to per-cpu, so we could set this
separately for each cpu.

Signed-off-by: ShuoX Liu <shuox.liu@intel.com>
Reported-by: Andrew J.Schorr <aschorr@telemetry-investments.com>
Reviewed-by: Yanmin Zhang <yanmin_zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
cpuidle: Fix finding state with min power_usage

Since cpuidle_state.power_usage is a signed value, use INT_MAX (instead
of -1) to init the local copies so that functions that tries to find
cpuidle states with minimum power usage works correctly even if they use
non-negative values.

Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpuidle: remove the power_specified field in the driver

We realized that the power usage field is never filled and when it
is filled for tegra, the power_specified flag is not set causing all
of these values to be reset when the driver is initialized with
set_power_state().

However, the power_specified flag can be simply removed under the
assumption that the states are always backward sorted, which is the
case with the current code.

This change allows the menu governor select function and the
cpuidle_play_dead() to be simplified.  Moreover, the
set_power_states() function can removed as it does not make sense
any more.

Drop the power_specified flag from struct cpuidle_driver and make
the related changes as described above.

As a consequence, this also fixes the bug where on the dynamic
C-states system, the power fields are not initialized.

[rjw: Changelog]
References: https://bugzilla.kernel.org/show_bug.cgi?id=42870
References: https://bugzilla.kernel.org/show_bug.cgi?id=43349
References: https://lkml.org/lkml/2012/10/16/518
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Conflicts:

	drivers/cpuidle/cpuidle.c
	drivers/cpuidle/driver.c