qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH 05/26] Unexport ticks_per_sec variable. Crea


From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: [PATCH 05/26] Unexport ticks_per_sec variable. Create get_ticks_per_sec() function
Date: Thu, 10 Sep 2009 12:38:59 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090825)

malc wrote:
My problem with this patch is that it is completely pointless, touches
a gob of places and the fact that you apparently never seen what a
function call entails on PPC64 (any ABI).

But there is nothing to suggest this variable is every in the fast path so any overhead argument is unfounded.

More importantly, using a function to access this variable gives us the ability to change how the behavior is implemented without touching a gob of places.

This is refactoring 101 and unless there is some concrete objection, I don't see what's wrong with it.

Regards,

Anthony Liguori




reply via email to

[Prev in Thread] Current Thread [Next in Thread]