diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-22 06:08:20 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-22 06:08:23 -0400 |
commit | e98bbaafcd1c47d30f3245517fb585f1aaaca4db (patch) | |
tree | 8c8c88910db0197acc92bf1ddef999816f1a778b /arch/s390/include | |
parent | 4f0076f77fb64889d4e5e425b63333e5764b446d (diff) |
[S390] lockless idle time accounting
Replace the spinlock used in the idle time accounting with a sequence
counter mechanism analog to seqlock.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/cputime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/cputime.h b/arch/s390/include/asm/cputime.h index ec917d42ee6d..7a3817a656df 100644 --- a/arch/s390/include/asm/cputime.h +++ b/arch/s390/include/asm/cputime.h | |||
@@ -178,7 +178,7 @@ cputime64_to_clock_t(cputime64_t cputime) | |||
178 | } | 178 | } |
179 | 179 | ||
180 | struct s390_idle_data { | 180 | struct s390_idle_data { |
181 | spinlock_t lock; | 181 | unsigned int sequence; |
182 | unsigned long long idle_count; | 182 | unsigned long long idle_count; |
183 | unsigned long long idle_enter; | 183 | unsigned long long idle_enter; |
184 | unsigned long long idle_time; | 184 | unsigned long long idle_time; |