VirtualBox

Ignore:
Timestamp:
Aug 7, 2015 9:33:40 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101987
Message:

SUPDrvGip: Comment typos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp

    r57224 r57233  
    21952195         * See @bugref{6710#c67}.
    21962196         */
    2197         /** @todo Could we drop the fuding there now that we initializes the history
     2197        /** @todo Could we drop the fudging there now that we initializes the history
    21982198         *        with nominal TSC frequency values?  */
    21992199        if (   u32TransactionId > 23 /* 7 + (8 * 2) */
     
    22862286 *
    22872287 * @param   pDevExt         The device extension.
    2288  * @param   u64NanoTS       The current nanosecond timesamp.
    2289  * @param   u64TSC          The current TSC timesamp.
     2288 * @param   u64NanoTS       The current nanosecond timestamp.
     2289 * @param   u64TSC          The current TSC timestamp.
    22902290 * @param   idCpu           The CPU ID.
    22912291 * @param   iTick           The current timer tick.
     
    23292329     * Recalc the update frequency every 0x800th time.
    23302330     */
    2331     if (   pGip->u32Mode != SUPGIPMODE_INVARIANT_TSC   /* cuz we're not recalculating the frequency on invariants hosts. */
     2331    if (   pGip->u32Mode != SUPGIPMODE_INVARIANT_TSC   /* cuz we're not recalculating the frequency on invariant hosts. */
    23322332        && !(pGipCpu->u32TransactionId & (GIP_UPDATEHZ_RECALC_FREQ * 2 - 2)))
    23332333    {
     
    23672367 *
    23682368 * @param   pDevExt         The device extension.
    2369  * @param   u64NanoTS       The current nanosecond timesamp.
    2370  * @param   u64TSC          The current TSC timesamp.
     2369 * @param   u64NanoTS       The current nanosecond timestamp.
     2370 * @param   u64TSC          The current TSC timesaver.
    23712371 * @param   idCpu           The CPU ID.
    23722372 * @param   idApic          The APIC id for the CPU index.
     
    24512451         * We could maybe on some platforms try cross calling a CPU with a
    24522452         * working delta here, but it's not worth the hassle since the
    2453          * likelyhood of this happening is really low.  On Windows, Linux, and
     2453         * likelihood of this happening is really low.  On Windows, Linux, and
    24542454         * Solaris timers fire on the CPU they were registered/started on.
    24552455         * Darwin timers doesn't necessarily (they are high priority threads).
     
    25282528
    25292529/**
    2530  * TSC delta measurment algorithm \#2 result entry.
     2530 * TSC delta measurement algorithm \#2 result entry.
    25312531 */
    25322532typedef struct SUPDRVTSCDELTAMETHOD2ENTRY
     
    25382538
    25392539/**
    2540  * TSC delta measurment algorithm \#2 Data.
     2540 * TSC delta measurement algorithm \#2 Data.
    25412541 */
    25422542typedef struct SUPDRVTSCDELTAMETHOD2
     
    25512551    SUPDRVTSCDELTAMETHOD2ENTRY  aResults[64];
    25522552} SUPDRVTSCDELTAMETHOD2;
    2553 /** Pointer to the data for TSC delta mesurment algorithm \#2 .*/
     2553/** Pointer to the data for TSC delta measurement algorithm \#2 .*/
    25542554typedef SUPDRVTSCDELTAMETHOD2 *PSUPDRVTSCDELTAMETHOD2;
    25552555
     
    25582558 * The TSC delta synchronization struct, version 2.
    25592559 *
    2560  * The syncrhonization variable is completely isolated in its own cache line
     2560 * The synchronization variable is completely isolated in its own cache line
    25612561 * (provided our max cache line size estimate is correct).
    25622562 */
     
    25922592/** Go! */
    25932593#define GIP_TSC_DELTA_SYNC2_GO               UINT32_C(0x1002)
    2594 /** Used by the verfication test. */
     2594/** Used by the verification test. */
    25952595#define GIP_TSC_DELTA_SYNC2_GO_GO            UINT32_C(0x1003)
    25962596
     
    30113011#ifdef GIP_TSC_DELTA_METHOD_1
    30123012/**
    3013  * TSC delta measurment algorithm \#1 (GIP_TSC_DELTA_METHOD_1).
     3013 * TSC delta measurement algorithm \#1 (GIP_TSC_DELTA_METHOD_1).
    30143014 *
    30153015 *
     
    32043204
    32053205/**
    3206  * The core function of the 2nd TSC delta mesurment algorithm.
     3206 * The core function of the 2nd TSC delta measurement algorithm.
    32073207 *
    32083208 * The idea here is that we have the two CPUs execute the exact same code
     
    32133213 * The @a fLag parameter is used to modify the execution a tiny bit on one or
    32143214 * both of the CPUs.  When @a fLag differs between the CPUs, it is thought that
    3215  * it will help with making the CPUs enter lock step execution occationally.
     3215 * it will help with making the CPUs enter lock step execution occasionally.
    32163216 *
    32173217 */
     
    32463246
    32473247/**
    3248  * TSC delta measurment algorithm \#2 (GIP_TSC_DELTA_METHOD_2).
     3248 * TSC delta measurement algorithm \#2 (GIP_TSC_DELTA_METHOD_2).
    32493249 *
    32503250 * See supdrvTscDeltaMethod2CollectData for algorithm details.
     
    37103710
    37113711    /*
    3712      * End the synchroniziation dance.  We tell the other that we're done,
     3712     * End the synchronization dance.  We tell the other that we're done,
    37133713     * then wait for the same kind of reply.
    37143714     */
     
    37913791
    37923792    /*
    3793      * One measurement at at time, at least for now.  We might be using
     3793     * One measurement at a time, at least for now.  We might be using
    37943794     * broadcast IPIs so, so be nice to the rest of the system.
    37953795     */
     
    38073807     * ASSUMES related threads have adjacent APIC IDs.  ASSUMES two threads per core.
    38083808     *
    3809      * We skip this on AMDs for now as their HTT is different from intel's and
     3809     * We skip this on AMDs for now as their HTT is different from Intel's and
    38103810     * it doesn't seem to have any favorable effect on the results.
    38113811     *
     
    44554455 * @retval  VERR_INTERRUPTED if interrupted while waiting.
    44564456 * @retval  VERR_SUPDRV_TSC_DELTA_MEASUREMENT_FAILED if we were unable to get a
    4457  *          measurment.
     4457 *          measurement.
    44584458 * @retval  VERR_CPU_OFFLINE if the specified CPU is offline.
    44594459 *
     
    47124712
    47134713                /*
    4714                  * If we're lucky we've got a delta, but no predicitions here
     4714                 * If we're lucky we've got a delta, but no predictions here
    47154715                 * as this I/O control is normally only used when the TSC delta
    47164716                 * is set to INT64_MAX.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette