intel_idle: fix confusing message
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 19 Apr 2023 14:39:45 +0000 (17:39 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 27 Apr 2023 17:37:36 +0000 (19:37 +0200)
commitdb1ae0c99950502d10e09d0c57ed1e16cd854b20
tree1ae67c19560a2a09ce3015eca58cd2e1985f1ff2
parent00433eae1771d355f20c152ddc5976baedb427e2
intel_idle: fix confusing message

By default, all non-POLL C-states are entered with interrupts disabled.

There are 2 ways to make 'intel_idle' enter C-states with interrupts
enabled:
  1. Mark the C-state with the CPUIDLE_FLAG_IRQ_ENABLE flag.
  2. Use the force_irq_on module parameter.

The former is the "proper" way of doing it, it is per-C-state and
per-platform. The latter is for debugging purposes only.

The problem is that intel_idle prints the "forced intel_idle_irq"
message in both cases, even though the former case does not needed
this message, because nothing is forced there. This patch addresses the
problem.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c