]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00176177-1 Add irq count mechanism to interactive governor
authorAnson Huang <b20788@freescale.com>
Mon, 19 Mar 2012 02:41:10 +0000 (10:41 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:19 +0000 (14:11 +0200)
commitb99c355c8070f71f562dd4bb05795afbeda514fe
tree40799ac855ebf00ff51beef81d926acf60d1f426
parentacef73a4d93caef5421bc77066f10596ca95a632
ENGR00176177-1 Add irq count mechanism to interactive governor

Add irq count to CPUFreq as a freq change condition.
Because some devices' working mode is unable to issue
CPUFreq change because of low CPU loading, but the cpu
freq will impact these devices' performace significantly.

Interactive govervor will sample the cpu loading as well
as the irq count which is registered. If the
loading or the irq count exceed the threshold we set,
governor will issue an CPUFreq change request.

These devices' irq threshold and enable/disable can be modified
via /sys/devices/system/cpu/cpufreq/interactive/irq_scaling

echo 0xAABBBC to change the default setting as below
AA : irq number
BBB: threshold
C  :enable or disable

Currently only enable USDHC3, USDHC4, GPU, SATA and
USB by default, we can add device to the init struct which is
located in arch/arm/mach-mx6/irq.c.

Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/mach-mx6/irq.c