• Pavel Tatashin's avatar
    x86/kvmclock: Remove memblock dependency · 368a540e
    Pavel Tatashin authored
    KVM clock is initialized later compared to other hypervisor clocks because
    it has a dependency on the memblock allocator.
    
    Bring it in line with other hypervisors by using memory from the BSS
    instead of allocating it.
    
    The benefits:
    
      - Remove ifdef from common code
      - Earlier availability of the clock
      - Remove dependency on memblock, and reduce code
    
    The downside:
    
      - Static allocation of the per cpu data structures sized NR_CPUS * 64byte
        Will be addressed in follow up patches.
    
    [ tglx: Split out from larger series ]
    Signed-off-by: default avatarPavel Tatashin <pasha.tatashin@oracle.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Cc: steven.sistare@oracle.com
    Cc: daniel.m.jordan@oracle.com
    Cc: linux@armlinux.org.uk
    Cc: schwidefsky@de.ibm.com
    Cc: heiko.carstens@de.ibm.com
    Cc: john.stultz@linaro.org
    Cc: sboyd@codeaurora.org
    Cc: hpa@zytor.com
    Cc: douly.fnst@cn.fujitsu.com
    Cc: peterz@infradead.org
    Cc: prarit@redhat.com
    Cc: feng.tang@intel.com
    Cc: pmladek@suse.com
    Cc: gnomes@lxorguk.ukuu.org.uk
    Cc: linux-s390@vger.kernel.org
    Cc: boris.ostrovsky@oracle.com
    Cc: jgross@suse.com
    Link: https://lkml.kernel.org/r/20180719205545.16512-2-pasha.tatashin@oracle.com
    368a540e
setup.c 32.3 KB