[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>
This commit is contained in:
@@ -178,7 +178,7 @@ cputime64_to_clock_t(cputime64_t cputime)
|
||||
}
|
||||
|
||||
struct s390_idle_data {
|
||||
spinlock_t lock;
|
||||
unsigned int sequence;
|
||||
unsigned long long idle_count;
|
||||
unsigned long long idle_enter;
|
||||
unsigned long long idle_time;
|
||||
|
Reference in New Issue
Block a user