Deductions & credits

Thanks, for calculating the % of foreign income, do I need to get the percentage on the total W2 income(ie foreign vested rsu + us income) or just the foreign vested RSU income