diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-27 18:14:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-27 18:14:26 -0400 |
commit | cea8f46c36c3f82860b038aa23a46e16757666ba (patch) | |
tree | e09dc37d2b6880d86dac09afbc0c686139d86df0 /drivers/watchdog | |
parent | c1e7179a38919f02dd950801529176b72f5e5a8a (diff) | |
parent | 91b006def384d8f07f9f324ab211fefe2b085c90 (diff) |
Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm
Pull ARM updates from Russell King:
"First ARM push of this merge window, post me coming back from holiday.
This is what has been in linux-next for the last few weeks. Not much
to say which isn't described by the commit summaries."
* 'for-linus' of git://git.linaro.org/people/rmk/linux-arm: (32 commits)
ARM: 7463/1: topology: Update cpu_power according to DT information
ARM: 7462/1: topology: factorize the update of sibling masks
ARM: 7461/1: topology: Add arch_scale_freq_power function
ARM: 7456/1: ptrace: provide separate functions for tracing syscall {entry,exit}
ARM: 7455/1: audit: move syscall auditing until after ptrace SIGTRAP handling
ARM: 7454/1: entry: don't bother with syscall tracing on ret_from_fork path
ARM: 7453/1: audit: only allow syscall auditing for pure EABI userspace
ARM: 7452/1: delay: allow timer-based delay implementation to be selected
ARM: 7451/1: arch timer: implement read_current_timer and get_cycles
ARM: 7450/1: dcache: select DCACHE_WORD_ACCESS for little-endian ARMv6+ CPUs
ARM: 7449/1: use generic strnlen_user and strncpy_from_user functions
ARM: 7448/1: perf: remove arm_perf_pmu_ids global enumeration
ARM: 7447/1: rwlocks: remove unused branch labels from trylock routines
ARM: 7446/1: spinlock: use ticket algorithm for ARMv6+ locking implementation
ARM: 7445/1: mm: update CONTEXTIDR register to contain PID of current process
ARM: 7444/1: kernel: add arch-timer C3STOP feature
ARM: 7460/1: remove asm/locks.h
ARM: 7439/1: head.S: simplify initial page table mapping
ARM: 7437/1: zImage: Allow DTB command line concatenation with ATAG_CMDLINE
ARM: 7436/1: Do not map the vectors page as write-through on UP systems
...
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/sa1100_wdt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/watchdog/sa1100_wdt.c b/drivers/watchdog/sa1100_wdt.c index 54984deb8561..ccd6b29e21bf 100644 --- a/drivers/watchdog/sa1100_wdt.c +++ b/drivers/watchdog/sa1100_wdt.c | |||
@@ -54,10 +54,10 @@ static int sa1100dog_open(struct inode *inode, struct file *file) | |||
54 | return -EBUSY; | 54 | return -EBUSY; |
55 | 55 | ||
56 | /* Activate SA1100 Watchdog timer */ | 56 | /* Activate SA1100 Watchdog timer */ |
57 | OSMR3 = OSCR + pre_margin; | 57 | writel_relaxed(readl_relaxed(OSCR) + pre_margin, OSMR3); |
58 | OSSR = OSSR_M3; | 58 | writel_relaxed(OSSR_M3, OSSR); |
59 | OWER = OWER_WME; | 59 | writel_relaxed(OWER_WME, OWER); |
60 | OIER |= OIER_E3; | 60 | writel_relaxed(readl_relaxed(OIER) | OIER_E3, OIER); |
61 | return nonseekable_open(inode, file); | 61 | return nonseekable_open(inode, file); |
62 | } | 62 | } |
63 | 63 | ||
@@ -80,7 +80,7 @@ static ssize_t sa1100dog_write(struct file *file, const char __user *data, | |||
80 | { | 80 | { |
81 | if (len) | 81 | if (len) |
82 | /* Refresh OSMR3 timer. */ | 82 | /* Refresh OSMR3 timer. */ |
83 | OSMR3 = OSCR + pre_margin; | 83 | writel_relaxed(readl_relaxed(OSCR) + pre_margin, OSMR3); |
84 | return len; | 84 | return len; |
85 | } | 85 | } |
86 | 86 | ||
@@ -114,7 +114,7 @@ static long sa1100dog_ioctl(struct file *file, unsigned int cmd, | |||
114 | break; | 114 | break; |
115 | 115 | ||
116 | case WDIOC_KEEPALIVE: | 116 | case WDIOC_KEEPALIVE: |
117 | OSMR3 = OSCR + pre_margin; | 117 | writel_relaxed(readl_relaxed(OSCR) + pre_margin, OSMR3); |
118 | ret = 0; | 118 | ret = 0; |
119 | break; | 119 | break; |
120 | 120 | ||
@@ -129,7 +129,7 @@ static long sa1100dog_ioctl(struct file *file, unsigned int cmd, | |||
129 | } | 129 | } |
130 | 130 | ||
131 | pre_margin = oscr_freq * time; | 131 | pre_margin = oscr_freq * time; |
132 | OSMR3 = OSCR + pre_margin; | 132 | writel_relaxed(readl_relaxed(OSCR) + pre_margin, OSMR3); |
133 | /*fall through*/ | 133 | /*fall through*/ |
134 | 134 | ||
135 | case WDIOC_GETTIMEOUT: | 135 | case WDIOC_GETTIMEOUT: |