1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     fnd_Backoff.cpp
4 
5   Copyright (C)2009-2012 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 46347 $
14  *---------------------------------------------------------------------------*/
15 
16 #include <nn/fnd/fnd_Backoff.h>
17 
18 namespace nn { namespace fnd {
19 
20 void
BackOffImpl()21 BackOffManager::BackOffImpl()
22 {
23     // TODO: This implementation should be reviewed
24     // It may be better also to have dependency core number
25     u32 spinCount = m_order << (m_count - 1);
26 
27     // TODO: If there is a generic SpinWait, use it
28     volatile int n;
29     for (u32 i = 0; i < spinCount; ++i)
30     {
31         n = 0;
32     }
33 }
34 
35 } }
36 
37