Russell King [Wed, 15 Dec 2010 19:23:07 +0000 (19:23 +0000)]
ARM: sched_clock: provide common infrastructure for sched_clock()
Provide common sched_clock() infrastructure for platforms to use to
create a 64-bit ns based sched_clock() implementation from a counter
running at a non-variable clock rate.
This implementation is based upon maintaining an epoch for the counter
and an epoch for the nanosecond time. When we desire a sched_clock()
time, we calculate the number of counter ticks since the last epoch
update, convert this to nanoseconds and add to the epoch nanoseconds.
We regularly refresh these epochs within the counter wrap interval.
We perform a similar calculation as above, and store the new epochs.
We read and write the epochs in such a way that sched_clock() can easily
(and locklessly) detect when an update is in progress, and repeat the
loading of these constants when they're known not to be stable. The
one caveat is that sched_clock() is not called in the middle of an
update. We achieve that by disabling IRQs.
Finally, if the clock rate is known at compile time, the counter to ns
conversion factors can be specified, allowing sched_clock() to be tightly
optimized. We ensure that these factors are correct by providing an
initialization function which performs a run-time check.
Acked-by: Peter Zijlstra <peterz@infradead.org>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Tested-by: Mikael Pettersson <mikpe@it.uu.se>
Tested-by: Eric Miao <eric.y.miao@gmail.com>
Tested-by: Olof Johansson <olof@lixom.net>
Tested-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
root [Thu, 10 Mar 2011 09:08:32 +0000 (17:08 +0800)]
in video mode chage ui to 565 fail
黄涛 [Thu, 10 Mar 2011 06:46:33 +0000 (14:46 +0800)]
rtc: hym8563: work around set alarm problem and indent
杜坤明 [Thu, 10 Mar 2011 06:13:33 +0000 (14:13 +0800)]
update the conctrl of gpu' clk
杜坤明 [Wed, 9 Mar 2011 10:39:05 +0000 (18:39 +0800)]
add gpu's earlysuspend & remove soft reset before poweron
root [Wed, 9 Mar 2011 08:27:27 +0000 (16:27 +0800)]
In video mode change to PIXEL_FORMAT_RGB_565
黄涛 [Wed, 9 Mar 2011 07:22:16 +0000 (15:22 +0800)]
rk29: no reset while panic and fix gcc warning
ChenJQ [Wed, 9 Mar 2011 07:14:30 +0000 (23:14 -0800)]
reduce the wm8900 pop noise
zyw [Wed, 9 Mar 2011 06:45:49 +0000 (14:45 +0800)]
del CONFIG_MACH_RK29_AIGO in drivers/video/display/screen/lcd_hsd100pxn.c
黄涛 [Wed, 9 Mar 2011 06:01:08 +0000 (14:01 +0800)]
rk29: pm: dump irq status when resume
蔡枫 [Wed, 9 Mar 2011 03:32:06 +0000 (11:32 +0800)]
Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop
蔡枫 [Wed, 9 Mar 2011 03:31:33 +0000 (11:31 +0800)]
disable set hardware cursor log
蔡枫 [Wed, 9 Mar 2011 03:17:40 +0000 (11:17 +0800)]
add hardware cursor support, auto switch to hardware cursor mode when using TVOUT or HDMI output
luowei [Wed, 9 Mar 2011 03:04:42 +0000 (11:04 +0800)]
modify wm831x voltage according to hardware
hhb [Tue, 8 Mar 2011 12:45:33 +0000 (20:45 +0800)]
migrate touch screen driver xpt2046
ddl [Thu, 3 Mar 2011 14:38:21 +0000 (22:38 +0800)]
camera: FIH defconfig for camera, mt9p111 debug and board config
lyx [Mon, 7 Mar 2011 08:44:21 +0000 (00:44 -0800)]
backlight:set bl_pwm as gpio and set it low, make sure backlight be off
cch [Mon, 7 Mar 2011 06:42:33 +0000 (14:42 +0800)]
fix the Audio indicators(S/R), and the speak Playback distortion
陈辉 [Fri, 4 Mar 2011 10:05:30 +0000 (18:05 +0800)]
Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop
陈辉 [Fri, 4 Mar 2011 10:04:54 +0000 (18:04 +0800)]
update rk29sdk-v0.16 rk29_sdk_defconfig: support host 3G
ChenJQ [Fri, 4 Mar 2011 09:08:11 +0000 (01:08 -0800)]
Open SPK playback channel
邱建斌 [Fri, 4 Mar 2011 06:31:56 +0000 (14:31 +0800)]
添加wm8994驱动支持
陈恒明 [Fri, 4 Mar 2011 04:38:38 +0000 (12:38 +0800)]
rk29: vpu: fix bug on pp reset
宋秀杰 [Fri, 4 Mar 2011 04:26:10 +0000 (20:26 -0800)]
fix bq27510 read error
ubuntu [Fri, 4 Mar 2011 03:09:16 +0000 (19:09 -0800)]
cwz update tps65910 irq
杜坤明 [Fri, 4 Mar 2011 02:31:43 +0000 (10:31 +0800)]
update gpu_shutdown & gpu_suspend
root [Fri, 4 Mar 2011 01:56:25 +0000 (09:56 +0800)]
swj add pwm reinit function for reboot
黄涛 [Thu, 3 Mar 2011 11:31:05 +0000 (19:31 +0800)]
rk29: backlight: fix kernel BUG by double add_timer while fast suspend/resume
fix this bug:
kernel BUG at kernel/timer.c:791!
Unable to handle kernel NULL pointer dereference at virtual address
00000000
pgd =
c0404000
[
00000000] *pgd=
00000000
Internal error: Oops: 817 [#1] PREEMPT
last sysfs file: /sys/devices/platform/rk29_i2c.0/i2c-0/0-0055/power_supply/bq27510-battery/status
Modules linked in: wlan
CPU: 0 Not tainted (2.6.32.27 #2)
PC is at __bug+0x18/0x24
LR is at __bug+0x14/0x24
[<
c042b3c8>] (__bug+0x18/0x24) from [<
c0453680>] (add_timer+0x1c/0x2c)
[<
c0453680>] (add_timer+0x1c/0x2c) from [<
c0476348>] (late_resume+0x104/0x158)
[<
c0476348>] (late_resume+0x104/0x158) from [<
c045a7bc>] (worker_thread+0x180/0x22c)
[<
c045a7bc>] (worker_thread+0x180/0x22c) from [<
c045dfac>] (kthread+0x78/0x80)
[<
c045dfac>] (kthread+0x78/0x80) from [<
c042899c>] (kernel_thread_exit+0x0/0x8)
宋秀杰 [Thu, 3 Mar 2011 08:51:18 +0000 (00:51 -0800)]
close log print in bq27510
宋秀杰 [Thu, 3 Mar 2011 07:55:48 +0000 (23:55 -0800)]
modify fuel gauge bq27510's function
陈恒明 [Thu, 3 Mar 2011 06:41:38 +0000 (14:41 +0800)]
rk29: vpu use kernel register config
lyx [Wed, 2 Mar 2011 11:25:50 +0000 (03:25 -0800)]
update l/p sensor isl29028 driver for phonesdk
ddl [Wed, 2 Mar 2011 09:41:05 +0000 (17:41 +0800)]
camera:fix camera power down pin and flash pin macro define error
root [Wed, 2 Mar 2011 07:57:58 +0000 (15:57 +0800)]
(xxm) FIH:update touch screen atmel_mxt224.c
lyx [Wed, 2 Mar 2011 06:37:58 +0000 (22:37 -0800)]
add idle wakelock for vmac
root [Tue, 1 Mar 2011 12:39:34 +0000 (20:39 +0800)]
Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop
root [Tue, 1 Mar 2011 12:36:31 +0000 (20:36 +0800)]
(xxm) update FIH: 1,add mpu3050 2,update rk29_FIH_defconfig 3,update touch screen
ubuntu [Tue, 1 Mar 2011 05:04:16 +0000 (21:04 -0800)]
cwz update FIH
root [Tue, 1 Mar 2011 03:26:12 +0000 (11:26 +0800)]
(xxm) support FIH
kfx [Mon, 28 Feb 2011 09:35:00 +0000 (17:35 +0800)]
disable adc_test
黄涛 [Mon, 28 Feb 2011 09:26:27 +0000 (17:26 +0800)]
rk29: pm: add flush_tlb_all
kfx [Mon, 28 Feb 2011 09:12:52 +0000 (17:12 +0800)]
update adc drivers
黄涛 [Mon, 28 Feb 2011 03:36:15 +0000 (11:36 +0800)]
rk29: pm: set core voltage after ddr suspend
ubuntu [Mon, 28 Feb 2011 02:19:53 +0000 (18:19 -0800)]
cwz add tps65910 driver
luowei [Mon, 28 Feb 2011 01:23:40 +0000 (09:23 +0800)]
add wm831x support for in board-rk29-phonesdk.c
lbt [Sat, 26 Feb 2011 11:26:41 +0000 (19:26 +0800)]
wifi:bcm4329:driver: remove rssi print message
ddl [Sat, 26 Feb 2011 11:26:38 +0000 (19:26 +0800)]
camera: fix camera resume may be fail
杜坤明 [Tue, 1 Mar 2011 07:27:55 +0000 (15:27 +0800)]
add soft reset of gpu
lbt [Sat, 26 Feb 2011 11:08:44 +0000 (19:08 +0800)]
sdmmc:driver: change RK29_SDMMC_DMA_THRESHOLD to fix bcm4329 firmware run crashed, the reason isn't cleared yet.
lbt [Sat, 26 Feb 2011 11:01:44 +0000 (19:01 +0800)]
wifi:bcm4329:driver: enable DHD_USE_STATIC_BUF
lbt [Sat, 26 Feb 2011 10:56:47 +0000 (18:56 +0800)]
wifi:bcm4329:boardsdk: use pre-allocate static buffer as bcm4329 malloc buffer
lbt [Sat, 26 Feb 2011 10:12:40 +0000 (18:12 +0800)]
Revert "wifi:bcm4329: update to 4.218.248.20"
This reverts commit
a378ad648a4da8dc9461d748fc820e748287ec59.
lbt [Sat, 26 Feb 2011 10:10:00 +0000 (18:10 +0800)]
Revert "wifi:bcm4329: use preallocate static buffer as malloc pool"
This reverts commit
58aeb04aa214dd220375b9b190afc05e7ed27a7a.
lbt [Sat, 26 Feb 2011 10:00:36 +0000 (18:00 +0800)]
Revert "wifi:bcm4329: remove rssi print message"
This reverts commit
7de9eb91f7a3acbb54a394a06dc80117dc379bc2.
luowei [Sat, 26 Feb 2011 06:49:33 +0000 (14:49 +0800)]
update wm831x header files from rk2818
luowei [Sat, 26 Feb 2011 06:28:56 +0000 (14:28 +0800)]
move wm831x code from rk2818
zyw [Sat, 26 Feb 2011 02:49:09 +0000 (10:49 +0800)]
update fb for win1 buf -1
root [Fri, 25 Feb 2011 10:17:12 +0000 (18:17 +0800)]
swj add reboot code
hxy [Fri, 25 Feb 2011 08:39:44 +0000 (16:39 +0800)]
change earlysuspend to suspend in gps driver
hxy [Fri, 25 Feb 2011 07:41:43 +0000 (15:41 +0800)]
add gps gns7560 to phone sdk
ddl [Thu, 24 Feb 2011 12:37:54 +0000 (20:37 +0800)]
camera: sync s5k6aa sensor driver for FIH project
lyx [Fri, 25 Feb 2011 02:35:42 +0000 (18:35 -0800)]
checkout gpio for phonesdk board
ddl [Tue, 1 Feb 2011 15:08:02 +0000 (23:08 +0800)]
camera: add mt9d112 sensor driver for FIH project
lyx [Thu, 24 Feb 2011 07:36:06 +0000 (23:36 -0800)]
add psensor isl29028 driver
cmc [Thu, 24 Feb 2011 01:31:25 +0000 (09:31 +0800)]
Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop
cmc [Thu, 24 Feb 2011 01:28:23 +0000 (09:28 +0800)]
modify for statfs fail in CTS
lyx [Wed, 23 Feb 2011 07:46:34 +0000 (23:46 -0800)]
Merge branch 'develop' of lyx@10.10.10.29:/home/rockchip/kernel into develop
lyx [Wed, 23 Feb 2011 07:46:03 +0000 (23:46 -0800)]
add rk29_phonesdk board, use make rk29_phonesdk_defconfig first
fang [Wed, 23 Feb 2011 07:31:12 +0000 (15:31 +0800)]
update pl330 shutdown func
fang [Wed, 23 Feb 2011 02:48:34 +0000 (10:48 +0800)]
fix dma mem bug
黄涛 [Tue, 22 Feb 2011 10:16:26 +0000 (18:16 +0800)]
rk29: L2 Data RAM latency set to 9 cycles
杜坤明 [Tue, 22 Feb 2011 10:14:03 +0000 (18:14 +0800)]
change gpu's memory from cache to writecombine
黄涛 [Tue, 22 Feb 2011 09:30:35 +0000 (17:30 +0800)]
cpufreq: ondemand: rk29 up threshold set to 80
黄涛 [Tue, 22 Feb 2011 05:09:11 +0000 (13:09 +0800)]
pack-kernel.sh: pack toolchain
fang [Tue, 22 Feb 2011 02:38:25 +0000 (10:38 +0800)]
add dma shutdown func only for test
fang [Fri, 18 Feb 2011 02:52:51 +0000 (10:52 +0800)]
update i2s fix music play and record bug
yangkai [Thu, 17 Feb 2011 08:57:37 +0000 (16:57 +0800)]
Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop
yangkai [Thu, 17 Feb 2011 08:57:02 +0000 (16:57 +0800)]
adjust usb phy suspend and clockgate sequence
zyw [Thu, 17 Feb 2011 07:03:27 +0000 (15:03 +0800)]
optimize fb shutdown for clk
hxy [Thu, 17 Feb 2011 03:40:41 +0000 (11:40 +0800)]
add support ddr3
kfx [Wed, 16 Feb 2011 11:11:28 +0000 (19:11 +0800)]
update rk29 vout driver
hxy [Wed, 16 Feb 2011 02:04:28 +0000 (10:04 +0800)]
add ddr auto powerdown in DDR_Initand change comment from chinese to english
ddl [Mon, 31 Jan 2011 14:15:01 +0000 (22:15 +0800)]
camera:add mt9p111 auto focus and some effect
root [Mon, 21 Feb 2011 09:01:41 +0000 (17:01 +0800)]
get framebuff phyaddress
黄涛 [Mon, 21 Feb 2011 03:42:01 +0000 (11:42 +0800)]
rk29: vpu: add shutdown support
zhaoyifeng [Mon, 21 Feb 2011 03:47:50 +0000 (11:47 +0800)]
Merge branch 'develop' of 10.10.10.29:/home/rockchip/kernel into develop
zhaoyifeng [Mon, 21 Feb 2011 03:47:01 +0000 (11:47 +0800)]
support 16bits nand flash.
黄涛 [Mon, 21 Feb 2011 03:28:12 +0000 (11:28 +0800)]
apanic: fix rknand erase
黄涛 [Mon, 21 Feb 2011 03:12:34 +0000 (11:12 +0800)]
keyboad: Synaptics So340010 TouchPad KEY default n
zyw [Mon, 21 Feb 2011 02:31:32 +0000 (10:31 +0800)]
update fb shutdown
杜坤明 [Mon, 21 Feb 2011 02:02:53 +0000 (10:02 +0800)]
update gpu kernel driver to 2.5.3.2.1
kfx [Mon, 21 Feb 2011 01:46:25 +0000 (09:46 +0800)]
i2c timeout: 10ms ==> 100ms
黄涛 [Sun, 20 Feb 2011 07:38:24 +0000 (15:38 +0800)]
add pack-kernel.sh
ddl [Mon, 31 Jan 2011 10:41:59 +0000 (18:41 +0800)]
camera: add mt9p111 driver for FIH Project, but driver havn't debug
ddl [Mon, 31 Jan 2011 07:29:15 +0000 (15:29 +0800)]
camera: sensor driver support 1M capture
ddl [Mon, 31 Jan 2011 04:34:12 +0000 (12:34 +0800)]
camera:fix sensor driver effect and whitebalance is invalidate after capture or video
zyw [Fri, 18 Feb 2011 09:57:31 +0000 (17:57 +0800)]
pull down hsync vsync den, when suspend
yangkai [Fri, 18 Feb 2011 08:28:20 +0000 (16:28 +0800)]
adjust usb phy suspend timing
ddl [Sun, 30 Jan 2011 23:51:31 +0000 (07:51 +0800)]
camera:turn on stream output after ov2659 init setting for vsync problem
ddl [Sun, 30 Jan 2011 23:16:11 +0000 (07:16 +0800)]
camera: fix sensor driver obtain i2c fail in atomic, so check i2c bus is locked or not before into atomic