]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[S390] serialize stp/etr work
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 25 Dec 2008 12:38:38 +0000 (13:38 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 25 Dec 2008 12:38:56 +0000 (13:38 +0100)
commit0b3016b781abeabc502042c942cbc611e31250c7
treea4aead52e4ea230a529e2c9d0899f5fe32f41408
parent750887dedc088d28198b170bcae83695247797d1
[S390] serialize stp/etr work

The work function dispatched with schedule_work() can be run twice
on different cpus because run_workqueue clears the WORK_STRUCT_PENDING
bit and then executes the function. Another cpu can call schedule_work()
again and run the work function a second time before the first call
is completed. This patch serialized the etr and stp work function with
a mutex.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/time.c