um: Implement TRACE_IRQFLAGS_SUPPORT
UML enables TRACE_IRQFLAGS_SUPPORT but doesn't actually implement
it. It seems to have been added for lockdep support, but that can't
actually really work well without IRQ flags tracing, as is also
very noisily reported when enabling CONFIG_DEBUG_LOCKDEP.
Implement it now.
Fixes: 711553efa5
("[PATCH] uml: declare in Kconfig our partial LOCKDEP support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:

committed by
Richard Weinberger

parent
276d75c4af
commit
0dafcbe128
@@ -132,7 +132,7 @@ static void update_thread(void)
|
||||
int n;
|
||||
char c;
|
||||
|
||||
flags = set_signals(0);
|
||||
flags = set_signals_trace(0);
|
||||
CATCH_EINTR(n = write(sigio_private[0], &c, sizeof(c)));
|
||||
if (n != sizeof(c)) {
|
||||
printk(UM_KERN_ERR "update_thread : write failed, err = %d\n",
|
||||
@@ -147,7 +147,7 @@ static void update_thread(void)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
set_signals(flags);
|
||||
set_signals_trace(flags);
|
||||
return;
|
||||
fail:
|
||||
/* Critical section start */
|
||||
@@ -161,7 +161,7 @@ static void update_thread(void)
|
||||
close(write_sigio_fds[0]);
|
||||
close(write_sigio_fds[1]);
|
||||
/* Critical section end */
|
||||
set_signals(flags);
|
||||
set_signals_trace(flags);
|
||||
}
|
||||
|
||||
int add_sigio_fd(int fd)
|
||||
|
Reference in New Issue
Block a user