Commit Graph

159562 Commits

Author SHA1 Message Date
Matt Sealey
09d86e1c1c bump to .20 - final release for 2.6.31 series 2011-02-21 20:18:30 -06:00
Jocelyn Falempe
7080e2f8e7 [CPUFREQ] ondemand: don't synchronize sample rate unless multiple cpus present
For UP systems this is not required, and results in a more consistent
sample interval.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jocelyn Falempe <jocelyn.falempe@motorola.com>
Signed-off-by: Mike Chan <mike@android.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Jones <davej@redhat.com>
(cherry picked from commit a665df9d510bfd5bac5664f436411f921471264a)
(cherry picked from commit 4dcc8b45d5187ea0cea8d85d4a1ba758fa209b67)
2011-02-21 19:58:35 -06:00
Nagananda.Chumbalkar@hp.com
6d8b14fb3d [CPUFREQ] Fix ondemand to not request targets outside policy limits
Dominik said:
target_freq cannot be below policy->min or above policy->max.
If it were, the whole cpufreq subsystem is broken.

But (answer):
I think the "ondemand" governor can ask for a target frequency that is
below policy->min.
...
A patch such as below may be needed to sanitize the target frequency
requested by "ondemand". The "conservative" governor already has this check:

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dave Jones <davej@redhat.com>

# diff -bur x/drivers/cpufreq/cpufreq_ondemand.c.orig y/drivers/cpufreq/cpufreq_ondemand.c
(cherry picked from commit 1dbf58881f307e21a3df4b990a5bea401360d02e)
(cherry picked from commit 5109f7b2bf70d58302b321919860e91976b93993)
2011-02-21 19:58:22 -06:00
Pallipadi, Venkatesh
3ccebe3665 [CPUFREQ] Resolve time unit thinko in ondemand/conservative govs
ondemand and conservative governors are messing up time units in the
code path where NO_HZ is not enabled and ignore_nice is set. The walltime
idletime stored is in jiffies and nice time calculation is happening in
microseconds.

The problem was reported and diagnosed by Alexander here.
http://marc.info/?l=linux-kernel&m=125752550404513&w=2

The patch below fixes this thinko.

Reported-by: Alexander Miller <Miller@fmi.uni-stuttgart.de>
Tested-by: Alexander Miller <Miller@fmi.uni-stuttgart.de>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
(cherry picked from commit 54c9a35d9faef06e00e2a941eb8fe674f1886901)
2011-02-21 19:58:20 -06:00
Matt Sealey
affb43356d backlight: jiggle the order of powering on backlight and deconfiguring the backlight PWM on blank/restore. Also, don't mess with the IO state of the PWM pin, if the PWM is disabled, it's disabled, all we need to do is turn the power off. 2011-02-21 18:45:31 -06:00
Matt Sealey
24d20827a9 backlight: add framebuffer notifier for blanking and registration so that the backlight turns on and off when the screen blanks again 2011-02-20 08:38:48 -06:00
Matt Sealey
01edd6f1f5 config: update to remove udlfb 2011-02-20 04:47:32 -06:00
Matt Sealey
1e92bd647b udlfb: remove from build system 2011-02-20 04:46:59 -06:00
Matt Sealey
d249cddd70 udlfb: remove since it's been merged to mainline, todo backport 2011-02-20 04:45:35 -06:00
Matt Sealey
5ef37bae84 rt2870sta: bring to mainline in the vain hope that it fixes a bug or two (especially the div0) 2011-02-20 04:41:07 -06:00
Matt Sealey
2b25c869c4 sbs: small fixes
* add health property and remove the state in the structure that kept the values previously
* reduce cache time to 2.5 seconds to make it quicker to respond to AC events
* add supplicants to the mains supply so that when AC detection hits, battery gets poked too
2011-02-20 03:05:28 -06:00
Matt Sealey
218e736adc power_supply: add health properties as per SBS 1.10a 2011-02-20 02:17:56 -06:00
Matt Sealey
e4cba1b35d sbs: move away from resources and weird irq structures and use the input subsystem to provide us with notification of battery status events 2011-02-20 01:37:03 -06:00
Matt Sealey
9ff8ee7ab4 gpiolib: export requested gpios to userspace without resorting to users having to do it 2011-02-20 01:36:32 -06:00
Vikram Kandukuri
76349ce899 Bluetooth: Improve USB driver throughput by increasing the frame size
This patch increases the receive buffer size to HCI_MAX_FRAME_SIZE
which improves the RX throughput considerably.

Tested against BRM/Atheros/CSR USB Dongles with PAN profile using
iperf and chariot. This gave significant (around 40%) increase
in performance (increased from 0.8 to 1.5 Mb/s in Sheld room)

Signed-off-by: Vikram Kandukuri <vikram.kandukuri@atheros.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
(cherry picked from commit 290ba200815fdecb4d40dc942499c4ea6d0c4624)
2011-02-20 00:22:05 -06:00
Matt Sealey
78f3311796 efikamx: stop using gpio-keys since it managed to not work at all.
* Make lid switch, power key and wireless switch into a real input device as it was in the deep dark past..
* weird regression: something changed in GNOME, so you can't suspend by dropping the lid (the option has been
  removed from gnome-power-preferences). And because if you suspend with the lid up, the lid switch is not set
  to wake, lifting the lid won't unsuspend. The only way to get the system back is with the power key. Damn
  you GNOME developers.
* weird behavior: smarttop will immediately come back after suspend
2011-02-19 21:04:44 -06:00
Matt Sealey
ab3f042849 periph: unify interrupt and gpio naming 2011-02-19 19:43:40 -06:00
Matt Sealey
fc732f4f73 bump to .19 2011-02-19 19:35:09 -06:00
Matt Sealey
14b847cc2a siihdmi: fix div0 when max_tmds_clock is not set in the EDID 2011-02-19 18:02:48 -06:00
Matt Sealey
e1414b9543 Move peripheral power and reset into periph.c and out of input.c 2011-02-19 16:00:06 -06:00
Matt Sealey
fd1667db18 rename wwan -> periph 2011-02-19 15:48:32 -06:00
Matt Sealey
098e8f8108 Merge branch 'master' of gitorious.org:efikamx/linux-kernel 2011-02-19 14:27:37 -06:00
Matt Sealey
2b8272f3be usb: refine usb initialization by only configuring Host2 on the Smartbook and holding the hub hostage while we power stuff up, and before the PHY is reset. This ensures that nothing weird happens on the USB bus while we are tweaking things. 2011-02-19 14:17:42 -06:00
Saleem Abdulrasool
92c97de2a4 sbs: dont send i2c messages if the battery is not present 2011-02-19 11:16:44 -08:00
Saleem Abdulrasool
0b908afc5b sbs: refactor power source presence detection
Add two utility functions:
   - bool battery_present(const struct sbs_battery *)
   - bool mains_present(const struct sbs_battery *)
2011-02-19 11:16:43 -08:00
Saleem Abdulrasool
301355f70f sbs: BUG_ON -> WARN_ON 2011-02-19 10:32:13 -08:00
Saleem Abdulrasool
01ff0a3ebb sbs: add read/write locking around battery accesses 2011-02-19 09:58:14 -08:00
Saleem Abdulrasool
8338937bb9 sbs: follow the pattern from sbs_init 2011-02-19 09:58:14 -08:00
Saleem Abdulrasool
9e94b56cb9 sbs: constantly read battery info until we succeed 2011-02-19 09:58:13 -08:00
Saleem Abdulrasool
25fb1967fb sbs: ensure that we have an IRQ resource 2011-02-19 09:58:13 -08:00
Saleem Abdulrasool
cfe8c4b11d sbs: request IRQs first to simplify error handling 2011-02-19 09:58:12 -08:00
Saleem Abdulrasool
2e40d0ec32 sbs: ensure that i2c_client does not have an invalid pointer 2011-02-19 09:58:11 -08:00
Saleem Abdulrasool
c375f68069 sbs: wrap mx51 hack in CONFIG_MACH_MX51_EFIKASB 2011-02-19 09:58:11 -08:00
Matt Sealey
eab0c300d9 system: don't pull the platform include just for one function definition (reboot) 2011-02-19 11:16:55 -06:00
Matt Sealey
46426dbc20 siihdmi: support CEA extended data blocks, particularly the video capability block to handle overscan/underscan properly 2011-02-19 09:32:37 -06:00
Matt Sealey
753ac9c27d cea861: add cea extension blocks 2011-02-19 09:32:12 -06:00
Matt Sealey
7e630788b5 siihdmi: add underscan/overscan behavior flags 2011-02-19 09:31:47 -06:00
Matt Sealey
84528eff3b power key: correct insanity with ORing things together 2011-02-19 09:18:25 -06:00
Matt Sealey
f56c0b7c71 audio: unknown platform = headphone not inserted 2011-02-19 08:41:17 -06:00
Matt Sealey
16077d7382 Headphone detect is active low on Smartbook. Fixes headphone detection. 2011-02-19 08:24:51 -06:00
Steev Klimaszewski
97adca8e15 Wifi power is active low on Smarttop but active high on Smartbook. Switch the state around depending on running machine. Fixes wireless on Smarttop. 2011-02-19 08:23:51 -06:00
Matt Sealey
19358f4b59 config: modularize pata and mmc again, hooray! 2011-02-18 14:50:20 -06:00
Matt Sealey
90f4aaa81b sb: remove redundant platform 2011-02-18 09:56:49 -06:00
Matt Sealey
1e9be94b0d bump to .18 2011-02-18 01:33:24 -06:00
Matt Sealey
1e44b3c0cb mark your calendars: this is the day one kernel supports both boards
one regression: wireless on smarttop has stopped working, probably not being reset properly
2011-02-18 01:30:06 -06:00
Matt Sealey
3edf4a1a24 sb: remove redundant unused debug driver 2011-02-18 01:04:16 -06:00
Matt Sealey
284c91bfdc clock: remove if'd out code since we don't use the camera interface anyway 2011-02-18 00:42:35 -06:00
Matt Sealey
38a119b0c4 hid-core: cleanup EFIKASB specific hack (not needed) 2011-02-18 00:42:10 -06:00
Matt Sealey
99ce2edfde sb: rename _input.c to _switch.c since it handles switches 2011-02-17 20:46:09 -06:00
Matt Sealey
0f748e4aea sb: cleanup include 2011-02-17 20:45:57 -06:00