From: Anton Blanchard Date: Mon, 3 Sep 2012 16:47:56 +0000 (+0000) Subject: powerpc: Update DSCR on all CPUs when writing sysfs dscr_default X-Git-Tag: v3.6-rc5~13^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b6ca2a6fe56e7697d57348646e07df08f43b1bb;p=pandora-kernel.git powerpc: Update DSCR on all CPUs when writing sysfs dscr_default Writing to dscr_default in sysfs doesn't actually change the DSCR - we rely on a context switch on each CPU to do the work. There is no guarantee we will get a context switch in a reasonable amount of time so fire off an IPI to force an immediate change. This issue was found with the following test case: http://ozlabs.org/~anton/junkcode/dscr_explicit_test.c Signed-off-by: Anton Blanchard Cc: # 3.0+ Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed