Skip to content
Commit 064231e5 authored by Paul Burton's avatar Paul Burton Committed by Ralf Baechle
Browse files

MIPS: pm-cps: Prevent use of mips_cps_* without CPS SMP



These symbols will not be defined when CONFIG_MIPS_CPS=n, but although
the CPS_PM_POWER_GATED state will never be used in that case the
compiler doesn't have enough information to figure that out. Add checks
which evaluate to a constant false for CONFIG_MIPS_CPS=n cases in order
to help the compiler out & eliminate the symbol references.

Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
Reviewed-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7278/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 250dc037
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