[PATCH] ARM: suspend: use flush range instead of flush all

2012-09-12 Thread wzch
From: Wenzeng Chen In cpu suspend function __cpu_suspend_save(), we save cp15 registers, resume function, sp and suspend_pgd, then flush the data to DDR, but no need to flush all D cache, only need to flush range. Change-Id: I591a1fde929f3f987c69306b601843ed975d3e41 Signed-off-by: Wenzeng Chen

[PATCH] rtc/pxa: fix set wrong data to RTC register issue

2012-09-06 Thread wzch
From: Wenzeng Chen Pxa rtc Day Count Register(RDCR) have 5 fields: Senconds, Minutes, Hour, Day-of-week(DOW) and Week-of-month(WOM). If someone wants to set the register, they can call rtc_writel(pxa_rtc, RDCR, rdxr_calc(tm)). But currently in function rdxr_calc(), we only get the value of minute