Quoting Tvrtko Ursulin (2018-03-01 14:32:17)
> +static void *mmio_base;
> +
> +static void cleanup(int sig)
> +{
> + volatile uint32_t *forcewake_mt =
> + (uint32_t *)((char *)mmio_base + FORCEWAKE_MT);
> + unsigned int bit;
> +
> + for (bit = 2; bit < 16; bit++) {
> + *forcewake_mt = (1 << bit) << 16;
> + if (*forcewake_mt & (1 << bit))
> + igt_warn("Failed to restore bit %u!\n", bit);
> + }
Is the exit handler called after threads are terminated... I don't think
so, my understanding are the threads are terminated by process shutdown
not libc.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx