OSDN Git Service

cputlb: handle first atomic write to the page
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Thu, 27 Apr 2017 05:18:20 +0000 (10:48 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 10 May 2017 23:45:14 +0000 (09:45 +1000)
commit7f9af1abdcc69fd1d3d8d2be68464329600616d6
tree48e6fecd3e7273ed6c361ce255b488624a266742
parent253ce7b2cfc0bccc3470335b0d7282457926087d
cputlb: handle first atomic write to the page

In case where the conditional write is the first write to the page,
TLB_NOTDIRTY will be set and stop_the_world is triggered. Handle this as
a special case and set the dirty bit. After that fall through to the
actual atomic instruction below.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
cputlb.c