aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/sysfs.c')
-rw-r--r--arch/powerpc/kernel/sysfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c
index d4cbbd1fa75f..8302af649219 100644
--- a/arch/powerpc/kernel/sysfs.c
+++ b/arch/powerpc/kernel/sysfs.c
@@ -196,8 +196,10 @@ static ssize_t show_dscr_default(struct device *dev,
196 196
197static void update_dscr(void *dummy) 197static void update_dscr(void *dummy)
198{ 198{
199 if (!current->thread.dscr_inherit) 199 if (!current->thread.dscr_inherit) {
200 current->thread.dscr = dscr_default;
200 mtspr(SPRN_DSCR, dscr_default); 201 mtspr(SPRN_DSCR, dscr_default);
202 }
201} 203}
202 204
203static ssize_t __used store_dscr_default(struct device *dev, 205static ssize_t __used store_dscr_default(struct device *dev,