intel_idle: shrink states tables
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 30 Aug 2013 10:25:10 +0000 (12:25 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Sep 2013 23:42:58 +0000 (01:42 +0200)
commiteba682a5aeb6c9bf08a9751f8d3ecafe043d8f88
tree5894d674aa5bfb39a771374df957f4118071b914
parent4a10c2ac2f368583138b774ca41fac4207911983
intel_idle: shrink states tables

There is no reason to define CPUIDLE_STATE_MAX (currently 10) entries
in states tables if the driver always stops iterating over table when
it encounters first .enter == NULL entry.

$ size drivers/idle/intel_idle.o.*
   text    data     bss     dec     hex filename
   2886    5440      32    8358    20a6 drivers/idle/intel_idle.o.before
   2886    3752      32    6670    1a0e drivers/idle/intel_idle.o.after

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c