539 Commits

Author SHA1 Message Date
SecureCRT
b989638f53 fixed merge problem 2012-08-23 22:41:48 +08:00
securecrt
1160ee1202 Merge branch 'ics_HWA' into jellybean
Conflicts:
	arch/arm/configs/htcleo_defconfig
	drivers/staging/android/lowmemorykiller.c
2012-08-23 12:57:17 +08:00
securecrt
c9ff149183 disable KSM 2012-08-23 12:45:29 +08:00
securecrt
4b10fc19b9 staging: Add Snappy compression support to zram
Zram currently uses LZO compression. With Snappy, it uses less CPU time and is
thus more useful. The sacrifice in compression ratio is small.
Zram's LZO and Snappy support can be independently enabled at compile time and
each zram device can switch between compression methods when unused.
When only a single compression method was enabled at compile time, no idirection
penalty is incurred.
http://driverdev.linuxdriverproject.org/pipermail/devel/2011-April/015114.html
2012-08-23 12:39:53 +08:00
SecureCRT
f3818c8864 Merge branch 'ics_HWA' of github.com:securecrt/android_kernel_htcleo-2.6.32-ics into ics_HWA 2012-08-23 02:50:19 +08:00
SecureCRT
2145485d7d mmc: change clock from 50Mhz to 64Mhz PCLK
mmc: change NR_SG from 32 to 128 for better performance
2012-08-23 02:45:27 +08:00
SecureCRT
4eade398cd mmc: msm: fix dma usage not to use internal APIs
Remove parts of this driver which use internal API calls. This
replaces the calls as suggested by Russell King.
2012-08-23 01:05:06 +08:00
SecureCRT
08802ee5be mmc: msm_sdcc: Fix bug in PIO mode when data size is not word aligned
The current code for PIO doesn't transfer whole data when data size
is not in multiple of 4 bytes. The last few bytes are not written to
the card resulting in no DATAEND interrupt from SDCC. This patch
allows data transfer for non-aligned data size in PIO mode.
2012-08-23 00:43:40 +08:00
SecureCRT
29e0f0df9d mmc: msm_sdcc: Add prog done interrupt support
Enable prog done interrupt for stop command(CMD12) that is sent
after a multi-block write(CMD25). The PROG_DONE bit is set when
the card has finished its programming and is ready for next data.

After every write request the card will be polled for ready status
using CMD13. For a multi-block write(CMD25) before sending CMD13,
stop command (CMD12) will be sent.  If we enable prog done interrupt
for CMD12, then CMD13 polling can be avoided. The prog done interrupt
means that the card is done with its programming and is ready for
next request.
2012-08-23 00:34:36 +08:00
SecureCRT
81d981629c mmc: msm_sdcc: Fix possible circular locking dependency warning
In the context of request processing thread, data mover lock is
acquired after the host lock.  In another context, in the completion
handler of data mover the locks are acquired in the reverse order,
resulting in possible circular lock dependency warning. Hence,
schedule a tasklet to process the dma completion so as to avoid
nested locks.
2012-08-23 00:10:19 +08:00
SecureCRT
04d584c634 drivers/mmc/host/msm-sdcc: remove dead config options
CONFIG_MMC_MSM7X00A_RESUME_IN_WQ and CONFIG_MMC_EMBEDDED_SDIO don't exist
in Kconfig and is never defined anywhere else, therefore removing all
references for it from the source code.
2012-08-23 00:00:26 +08:00
SecureCRT
5c726afbb6 Revert "mm: cleancache core ops functions and config"
This reverts commit e0c9143ea1ec510a41b347be043e98034eedf5c8.
2012-08-20 23:15:00 +08:00
SecureCRT
61eb7c5296 Revert "add zcache"
This reverts commit 8eb6724dbfb99bb1f17f3192483fafc1f9eb73fe.
2012-08-20 23:14:51 +08:00
SecureCRT
4cecd4ccb2 Revert "fs: add field to superblock to support cleancache"
This reverts commit 1abd4f495eaa84e73b597f238cce704f06c54dc4.
2012-08-20 23:12:22 +08:00
SecureCRT
0f794ead76 Revert "enable zcache & cleancache"
This reverts commit c2ff7098d4011efb6143305f62b71c0f95e38108.
2012-08-20 23:12:10 +08:00
SecureCRT
f3a9b636b3 Revert "mm/fs: add hooks to support cleancache"
This reverts commit 3d343ac32afc6eb933d98eb2dc4b3ad532de7f3a.
2012-08-20 23:10:46 +08:00
SecureCRT
7c50bd921f staging:lowmemkiller add Fudgeswap
fudgeswap acts as follows:

If set to non zero (defualt is 512k):
	Check for the amount of SWAP_FREE space avalible
	If > 0KB is avalible:
		if fudgeswap > swapfree:
			other_file += swapfree
		else:
			other_file += fugeswap

In short: we will add in fugeswap as long as its less then the free swap

Setting this to a very large positive number will indicate swap ought
to be fully used as free (and will slow the system down)

smaller numbers will allow you to put some pressure on SWAP without
slowing the system down as much.

small negitive numbers will allow the system to be faster at the same
minfree level.

default is 512 to give a very little bit of pressure to use some swap
but this can be modified at runtime via:
/sys/module/lowmemorykiller/parameters/fugeswap
originally by ezterry
 Please enter the commit message for your changes. Lines starting
2012-08-20 15:24:37 +08:00
SecureCRT
3d343ac32a mm/fs: add hooks to support cleancache 2012-08-20 12:10:10 +08:00
SecureCRT
b6c1977f35 revert #8b62d33 2012-08-20 00:57:38 +08:00
SecureCRT
c2ff7098d4 enable zcache & cleancache 2012-08-20 00:53:53 +08:00
SecureCRT
8b62d33820 enable zcache & cleancache 2012-08-20 00:52:57 +08:00
SecureCRT
1abd4f495e fs: add field to superblock to support cleancache 2012-08-20 00:51:37 +08:00
SecureCRT
8eb6724dbf add zcache 2012-08-20 00:51:06 +08:00
SecureCRT
e0c9143ea1 mm: cleancache core ops functions and config 2012-08-20 00:49:43 +08:00
SecureCRT
f1beec1b32 vmalloc(): adjust gfp mask passed on nested vmalloc() invocation 2012-08-18 23:45:48 +08:00
SecureCRT
7c81b7476d ksm: check for ERR_PTR from follow_page() 2012-08-17 01:49:14 +08:00
SecureCRT
8b041c69af mm/ksm.c is doing an unneeded _notify in write_protect_page. 2012-08-17 01:40:53 +08:00
SecureCRT
c95ed3371a staging: zram: fix zram locking
Staging: zram: Replace mutex lock by a R/W semaphore
Staging: zram: Add a missing GFP_KERNEL specifier in zram_init_device()
2012-08-17 01:21:55 +08:00
SecureCRT
cc0db50c33 ksm: remove unswappable max_kernel_pages
ksm: fix bad user data when swapping
thp: ksm: free swap when swapcache page is replaced
2012-08-17 01:19:24 +08:00
securecrt
c59e5f029c change MSM_NAND_DMA_BUFFER_SIZE to SZ_1M 2012-08-15 18:55:32 +08:00
securecrt
e4c201d97a pmem_adsp (user-space) as non-cached
pmem_venc (user-space) as non-cached
2012-08-15 18:55:05 +08:00
securecrt
8d4f825606 pmem: Check for valid virtual address while flushing
pmem: Correctly account for aligned blocks
2012-08-15 18:54:43 +08:00
securecrt
a8ff4f89b4 android: logger: Allow a UID to read it's own log entries
staging: logger: hold mutex while removing reader
staging: android: logger: clarify non-update of w_off in do_write_log_from_user
staging: android: logger: clarify code in clock_interval
staging: android: logger: reorder prepare_to_wait and mutex_lock
staging: android: logger: simplify and optimize get_entry_len
staging: android: logger: Change logger_offset() from macro to function
Staging: android: fixed white spaces coding style issue in logger.c
android: logger: bump up the logger buffer sizes
2012-08-15 18:53:52 +08:00
securecrt
9f70587067 staging: android: lowmemorykiller: sysfs node and notifications
android, lowmemorykiller: remove task handoff notifier
staging: android: lowmemorykiller: Fix task_struct leak
staging: android/lowmemorykiller: Don't unregister notifier from atomic context
staging: android, lowmemorykiller: convert to use oom_score_adj
staging: android/lowmemorykiller: Do not kill kernel threads
staging: android/lowmemorykiller: No need for task->signal check
staging: android/lowmemorykiller: Better mm handling
staging: android/lowmemorykiller: Don't grab tasklist_lock
staging: android: lowmemorykiller: Don't wait more than one second for a process to die
Staging: android: fixed 80 characters warnings in lowmemorykiller.c
staging: android: lowmemorykiller: Ignore shmem pages in page-cache
staging: android: lowmemorykiller: Remove bitrotted codepath
staging: android: lowmemkiller: Substantially reduce overhead during reclaim
staging: android: lowmemorykiller: Don't try to kill the same pid over and over
2012-08-15 18:53:09 +08:00
securecrt
0fa4a5529c Staging: android: binder: Don't call dump_stack in binder_vma_open
Staging: android: binder: Fix crashes when sharing a binder file between processes
drivers:staging:android Typos: fix some comments that have typos in them.
fs: Remove missed ->fds_bits from cessation use of fd_set structs internally
Staging:android: Change type for binder_debug_no_lock switch to bool
Staging: android: binder: Fix use-after-free bug
2012-08-15 18:52:07 +08:00
securecrt
0c4a37e304 change MSM_NAND_DMA_BUFFER_SIZE to SZ_1M 2012-08-15 18:07:29 +08:00
securecrt
cdcb35c854 pmem_adsp (user-space) as non-cached
pmem_venc (user-space) as non-cached
2012-08-15 18:06:24 +08:00
securecrt
fced437cd2 pmem: Check for valid virtual address while flushing
pmem: Correctly account for aligned blocks
2012-08-15 18:04:29 +08:00
securecrt
e04d028ecf reduced the log size 2012-08-15 18:03:44 +08:00
securecrt
9c3257d859 android: logger: Allow a UID to read it's own log entries
staging: logger: hold mutex while removing reader
staging: android: logger: clarify non-update of w_off in do_write_log_from_user
staging: android: logger: clarify code in clock_interval
staging: android: logger: reorder prepare_to_wait and mutex_lock
staging: android: logger: simplify and optimize get_entry_len
staging: android: logger: Change logger_offset() from macro to function
Staging: android: fixed white spaces coding style issue in logger.c
android: logger: bump up the logger buffer sizes
2012-08-15 14:56:37 +08:00
securecrt
d6b41b0def staging: android: lowmemorykiller: sysfs node and notifications
android, lowmemorykiller: remove task handoff notifier
staging: android: lowmemorykiller: Fix task_struct leak
staging: android/lowmemorykiller: Don't unregister notifier from atomic context
staging: android, lowmemorykiller: convert to use oom_score_adj
staging: android/lowmemorykiller: Do not kill kernel threads
staging: android/lowmemorykiller: No need for task->signal check
staging: android/lowmemorykiller: Better mm handling
staging: android/lowmemorykiller: Don't grab tasklist_lock
staging: android: lowmemorykiller: Don't wait more than one second for a process to die
Staging: android: fixed 80 characters warnings in lowmemorykiller.c
staging: android: lowmemorykiller: Ignore shmem pages in page-cache
staging: android: lowmemorykiller: Remove bitrotted codepath
staging: android: lowmemkiller: Substantially reduce overhead during reclaim
staging: android: lowmemorykiller: Don't try to kill the same pid over and over
2012-08-15 13:37:30 +08:00
securecrt
9b8229cafb Staging: android: binder: Don't call dump_stack in binder_vma_open
Staging: android: binder: Fix crashes when sharing a binder file between processes
drivers:staging:android Typos: fix some comments that have typos in them.
fs: Remove missed ->fds_bits from cessation use of fd_set structs internally
Staging:android: Change type for binder_debug_no_lock switch to bool
Staging: android: binder: Fix use-after-free bug
2012-08-14 16:48:25 +08:00
securecrt
e20f7d7077 base: genlock: Remove genlock_release_lock and associated ioctl
base: genlock: allow synchronization with a single gralloc handle
base: genlock: remove BIT macro usage
2012-08-14 13:45:36 +08:00
securecrt
3107194028 fixed typo in config file 2012-08-07 16:52:14 +08:00
SecureCRT
11a56d2216 add in_interrupt back 2012-08-07 00:53:53 +08:00
SecureCRT
65b62e5ee4 base: genlock: Remove genlock_release_lock and associated ioctl
base: genlock: allow synchronization with a single gralloc handle
base: genlock: remove BIT macro usage
2012-08-07 00:45:11 +08:00
securecrt
55ece772cd msm: kgsl: Add per context timestamp
Add new ioctls for per context timestamps.
Timestamp functions (read/write/wait) will now be context
specific rather than only using the global timestamp.
Per context timestamps is a requirement for priority
based queueing.
2012-08-02 17:04:07 +08:00
securecrt
1e188cc5e1 net: netfilter: enable bandwidth control
to be able to set mobile data limit
2012-08-02 13:21:31 +08:00
securecrt
8bdae42d95 net: netfilter: enable bandwidth control
to be able to set mobile data limit
2012-08-01 10:55:06 +08:00
securecrt
05369deec9 include: checkout msm_mdp from ics_chocolate
*needs to match userspace*
2012-07-31 13:59:12 +08:00