]> git.baikalelectronics.ru Git - kernel.git/commit
i7300_idle: allow testing on i5000-series hardware w/o re-compile
authorLen Brown <len.brown@intel.com>
Thu, 28 May 2009 03:59:58 +0000 (23:59 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 29 May 2009 00:52:40 +0000 (20:52 -0400)
commitf82a3115b27b5a9487a27ab1f911cf22dc2e1d69
tree922513b874c12a9fe75bba02e94c24388f21dc35
parent8ee7085de685de2c136bd495f7cf311d22c13525
i7300_idle: allow testing on i5000-series hardware w/o re-compile

Testing the i7300_idle driver on i5000-series hardware required
an edit to i7300_idle.h to "#define SUPPORT_I5000 1" and a re-build
of both i7300_idle and ioat_dma.

Replace that build-time scheme with a load-time module parameter:
"7300_idle.forceload=1" to make it easier to test the driver
on hardware that while not officially validated, works fine
and is much more commonly available.

By default (no modparam) the driver will continue to load
only on the i7300.

Note that ioat_dma runs a copy of i7300_idle's probe routine
to know to reserve an IOAT channel for i7300_idle.
This change makes ioat_dma do that always on the i5000,
just like it does on the i7300.

Signed-off-by: Len Brown <len.brown@intel.com>
Acked-by: Andrew Henroid <andrew.d.henroid@intel.com>
drivers/dma/ioat_dma.c
drivers/idle/i7300_idle.c
include/linux/i7300_idle.h