Mateusz Guzik 736ff8c396 hwpmc: partially depessimize munmap handling if the module is not loaded
HWPMC_HOOKS is enabled in GENERIC and triggers some work avoidable in the
common (module not loaded) case.

In particular this avoids permission checks + lock downgrade
singlethreaded and in cases were an executable mapping is found the pmc
sx lock is no longer bounced.

Note this is a band aid.

MFC after:	1 week
2017-01-24 22:00:16 +00:00
..
2016-09-10 16:49:25 +00:00
2017-01-05 03:13:45 +00:00
2017-01-01 18:49:46 +00:00
2016-12-26 19:29:04 +00:00
2017-01-12 20:26:02 +00:00