cpufreq: interactive: Add error checking on sysfs interfaces
authorAllen Martin <amartin@nvidia.com>
Thu, 30 Jun 2011 23:59:19 +0000 (16:59 -0700)
committerTodd Poynor <toddpoynor@google.com>
Fri, 15 Jul 2011 22:33:55 +0000 (15:33 -0700)
commit8b12552d248d574b6e333a6e120bccb2abe4010a
treed86ac69579b686a69eab5352b277ba78ead9a6b7
parent80e65d97d20da210e2cd04436d64a58cbba0c2be
cpufreq: interactive: Add error checking on sysfs interfaces

This adds better error checking on tunable parameters on sysfs
interfaces.  Also fixes return value from these functions, previously
on success they would return 0 which would cause a infinite loop.

Change-Id: Ic05038492166f8673d007202092471f98a2f0dfa
Signed-off-by: Allen Martin <amartin@nvidia.com>
drivers/cpufreq/cpufreq_interactive.c