Re: [PATCH 4/5] oprofile: Remove exit function for timer mode

Ingo Molnar
2011-10-18T06:15:22Z

* Robert Richter <robert.richter@amd.com> wrote:

> /* failed */
> - if (timer_mode)
> - oprofile_timer_exit();
> - else
> + if (!timer_mode)
> oprofile_arch_exit();

> - if (timer_mode)
> - oprofile_timer_exit();
> - else
> + if (!timer_mode)
> oprofile_arch_exit();

... and the ugliness didnt improve much here either.

Any reason why oprofile_arch_exit() couldnt check timer_mode?

Thanks,

Ingo